azure-ad-b2cazure-ad-b2c-custom-policyuser-accountsmicrosoft-entra-id

Claim groups is not supported in Azure Active Directory Provider


I am trying to read the groups that the user has, I have created a claim called 'groups' and added this line to several technical profiles, all of them are meant to read from AAD.

 <OutputClaim ClaimTypeReferenceId="groups" />

but I get the error mentioned

error

I have tried the to declare the claim as string or as a stringCollection, no success so far.


Solution

  • You can only use attributes that are in the schema.

    To use "groups", it needs to be an extension attribute.