How can I use Azure Ad to generate an access token with custom fields?

Kallil Zielinski 1 Reputation point

I want to send an username, or email, and without microsoft authentication, generate a bearer token with these fields at the token's payload. I was thinking about using the client credentials grant, since it is not necessary to authenticate with MS account to get a token. But I can't find a way to put these username and email in the body of the token.


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,626 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 20,661 Reputation points Microsoft Employee

    Hi @Kallil Zielinski , thanks for your question. A good place to start is this document. And for some more examples this thread is good as well. If you have any questions please let me know and I can help you further!

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,

    0 comments No comments