Home > Software engineering >  Include the EmployeeID as claims in tokens in Azure AD
Include the EmployeeID as claims in tokens in Azure AD

Time:07-09

I need to add the employeeid as claim notification in token, I used the tutorial of this link: enter image description here

I did this configuration with graph api, where I create the policy and bind it with the service principal:

[![enter image description here][2]][2][![enter image description here][3]][3]

If I check this configuration, it seems to be correct: [![enter image description here][4]][4]

I have followed all the steps correctly, and I can't include the employeeid in the token, what is happening? thanks.

enter image description here

CodePudding user response:

Assuming this is an access token you are requesting, you could check two things:1.The claims mapping policy should be attached to the resource (api) service principal/application id for which you are requesting the access token 2. You need to update the application manifest as mentioned towards the end of the document you shared.

CodePudding user response:

I tried to reproduce in my environment getting the employeeid successfully

enter image description here

Make sure you have choose your Application object ID

enter image description here

For your Reference :

https://s4erka.wordpress.com/2020/08/06/azuread-claim-mapping-policy/

  • Related