1
votes

I have a few users added to my Azure AD account, I would like to get the information on these users by calling an Azure API from Postman in the form of claims. I tried calling the following URL with the parameters as :

https://login.microsoftonline.com/myTenantId/oauth2/token

Body: grant_type : client_credentials, client_id : client id, client secret : client secret

I receive the access_token in the encoded format in the response, When I decode it on https://jwt.io/ I see the decoded data, but there's no user information in the access_token.

I would like to get the user information in the form of claims in the response.

What approach would I need to take on this ?

enter image description here

1

1 Answers

0
votes

If you want to get user information in the token, you should change the grant_type to password. And provide the username and password in the body.

enter image description here

Here is the user screenshot. enter image description here