Reputation: 109
I need to read the Azure Ad user's "Department".
I checked the resource https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-optional-claims, But it won't help since i can not find the any claim type to read the "Department"
Upvotes: 0
Views: 325
Reputation: 7483
As you mentioned, there is no claim named Department
in the official doc, my workaround is to create the different groups in Azure AD for different departments, add the users in different groups.
Then use the groups
claim:
For more information about group claims in the token, see here.
Upvotes: 1