I need to add the employeeid as claim notification in token, I used the tutorial of this link:
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.
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
Make sure you have choose your Application object ID
For your Reference :
https://s4erka.wordpress.com/2020/08/06/azuread-claim-mapping-policy/