
z4xjj (z4xjj) asked a question.
Hi OKTA Support,
Our use case is the following: we want to create a Claim that returns be the group’s names the user belong to for the current Client-ID.
I already went time on to OKTA developer Portal (“https://developer.okta.com/docs/reference/okta-expression-language/*group-functions”) and I didn’t find a solution.
FYI:
• We would like to have the same claim name for all Cliend-IDs (NB: If we work out a solution having a claim name that is the Client-Id it may be OK)
• All Client-Id(s) don’t have a dedicated scope (few of them only uses openid scope)
• There is no naming convention to filter the Global user’s group on current application.
I guess this is a common use case so I hope you have a solution.

Hello @z4xjj (z4xjj) Thank you for reaching out to our community.
Please see this article that might provide the required data:
https://developer.okta.com/docs/guides/customize-tokens-groups-claim/main/
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/