skip to Main Content

I need to add the employeeid as claim notification in token, I used the tutorial of this link:
https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-claims-mapping#include-the-employeeid-and-tenantcountry-as-claims-in-tokens

I did all steps, but my token is not returning the employeeid:

enter image description here

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

If I check this configuration, it seems to be correct:

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

2

Answers


  1. 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.

    Login or Signup to reply.
  2. 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/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search