Back
In able to do that, first you need to create a policy for a custom claims and for that, take a look at Claims mapping policy. Below is the command you can take it as an example:
New-AzureADPolicy -Definition @('{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true", "ClaimsSchema": [{"Source":"user","ID":"department","JwtClaimType":"department"}]}}') -DisplayName "ExtraClaimsExample” -Type "ClaimsMappingPolicy"
I hope this will help.
Want to become an Azure expert? join azure architect certification now!!
31k questions
32.8k answers
501 comments
693 users