Share via

Azure access token invalid

Anonymous
2021-08-03T08:56:55.863+00:00

Hi Team,

I am facing an issue in which I am getting a 203 response for PAT creation REST Api.

I am generating the access token against my user in the AAD using the following endpoint :

https://login.microsoftonline.com/{{ tenantid }}/oauth2/v2.0/token

and username, password, client_id, grant_type as password, scope in the body

and I am using the generated token for calling the following API endpoint :

https://vssps.dev.azure.com/shcgravity/_apis/tokens/pats?api-version=6.1-preview.1

but I am getting a 203 response.

Note : the user has app has permission as user_impersonation

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.