
User1629393586865706725 (Customer) asked a question.
Hi there,
In Security/API, we are trying to add an additional claim which provides us with all of a user's groups that they are in. On the authorization server, in claims, we tried the expressions "user.getGroups({'group.type': {'APP_GROUP'}})" and appuser.getGroups({'group.type': {''APP_GROUP'}}) and we did not see the new claim come across in our payload. We were able to verify that "getFilteredGroups({'00ga6w786xQdeTyzQ1d6
'}, "group.name", 100)" works, but this does not fit our criteria since we want to get all of a users groups based on the group type of APP_GROUP and not provide specific ids. Is there method available that will allow us to just stick this onto the payload that gets or do we have to use Groups API?

Hello @User1629393586865706725 (Customer),
Please check the following link with information, you would see a session of how you can enumerate groups with specific types:
https://developer.okta.com/docs/reference/api/groups/#response-example-4
Regards,
Natalia
Okta Inc.
Hi Natalia,
Thank you for replying. We are not currently using the Okta API for dealing with adding onto the claims. We wanted to ask if something could be added in the attached screenshot area for adding the users groups onto the claims that get sent.