smith
smith

Reputation: 109

How to add Deparment to Azure AD Token

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"

enter image description here

Upvotes: 0

Views: 325

Answers (1)

unknown
unknown

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:

enter image description here

For more information about group claims in the token, see here.

Upvotes: 1

Related Questions