Azure access token invalid

JOSHI, AYUSH 1 Reputation point
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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,079 questions
{count} votes