Is there any trick to getting user’s groups from Okta? EVERYTHING works perfectly except I can’t get that group that I as a test user am supposed to belong to.
My administrator added a groups claim type of Expression
groups & startsWith('active_directory", “ABC_”, 100)
My Blazor app is almost completely using the Blazor Server side demo on Okta’s code repo found here…
Hello there, my name is Akash and I will be assisting you with your queries.
If the group information (claim) of the user is not included in the token, then probably NULL value was returned by the expression. This could be due to the user is not a member of a group that matches the substring, and the claim will be eventually absent from the token.
You can also write an expression that is in this conditional-based format so that it can handle the case where the user is not a member of a group matching one (or both) of the Groups.startsWith expressions. - Okta Help Center (Lightning)
Also, could you provide me with the exact expression that is added in the claim?
Please make sure to follow this format for the expression - Groups.startsWith(app_type/app_instance_id, pattern, limit)
The expression that you have provided is incorrect - groups & startsWith('active_directory", “ABC_”, 100)