Azure B2C optional group claims - Directory Roles - missing

Alex B 76 Reputation points
2020-01-14T17:07:42.15+00:00

I've been trying to authorize users based on their Role Directory using Azure B2C. I added Group Claim in "Token configuration (preview)", selected "Directory roles", so they should be available in both ID and Access tokens.

But when I get the token, there's no "groups" or anything like that. And my user does have a directory role assignment. What am I missing??

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,664 questions
0 comments No comments
{count} vote

Accepted answer
  1. AmanpreetSingh-MSFT 56,311 Reputation points
    2020-01-16T15:28:49.51+00:00

    @Alex B Passing Claims by configuring it under "Token configuration (preview)" is currently supported only by standard Azure AD only and not by Azure AD B2C. The only way to pass specific claims in Token issued by B2C is by configuring it in User Flows or Custom Policies at this time.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept as answer" wherever the information provided helps you to help others in the community.


1 additional answer

Sort by: Most helpful
  1. Robert 1 Reputation point
    2021-05-30T17:04:59.613+00:00

    Has this option been added in the mean time?

    0 comments No comments