Azure B2C groups in claims

Petr Kasnal 21 Reputation points

Hi, i need take from my JWT token groups on sign in which have user. I don't find any solution in B2C is there any way? I create app in .NET MVC

Thank you

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,502 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 12,901 Reputation points Microsoft Employee

    Hi @Petr Kasnal , are you asking on how to retrieve the groups that the current user is in? I would use the Graph API for this.

    You can take the user from the JWT and then run the Graph query on that user. Please let me know if you have any questions!

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,