question

bruce-8002 avatar image
0 Votes"
bruce-8002 asked bruce-8002 answered

Azure Ad JWT Token set custom claims name

I want to add more claims into access Token.
But I cannot set the name to "role", "clientId", "tenant" etc.

Can I do that or do we have some restrict words for claims

azure-ad-authentication
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered

Hi @bruce-8002 · Thank you for reaching out.

There are a number of restricted claims like role, roles, client_id and so on, which are restricted and reserved for specific purposes. You can not set these claims.

You can find entire list of JWT restricted claims here: JSON Web Token (JWT) restricted claim set


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

bruce-8002 avatar image
0 Votes"
bruce-8002 answered

Got it, Many thanks.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.