How to add group id(s) to claim(s)?

Hey everyone,

I’m trying to get a group id into a claim, but I have no idea if there’s an identifier for “group id”?
Here’s a screenshot from what I’m trying

Hi @Nicky,

To get groupid as a claim, you could use getFilteredGroups group function in the claim expression. Pls refer to Use a static group allow list with a Custom Authorization Server | Okta Developer

I kinda got this working with just passing an array of group ids,
but I don’t want to create a different claim for every app.
Seems like I have to use app.profile.groupallowlist, but this doesn’t seem to work…
Do I need to create/set this variable somewhere?

Appreciate the help!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.