Forum Discussion
tanulbhasin
Apr 18, 2023Brass Contributor
Can we create Personal Access token for Service Principal?
In the organization, add user section I have added the service principal. Can we create PAT for the same via azure devops portal or rest api?
- jumar770Copper Contributor
I believe the answer is no. To get an short-lived access token you can create an application and use the client credentials to acquire a token.
See here for more details: https://stackoverflow.com/questions/67639199/is-it-possible-to-use-service-principal-to-access-git-repository-on-azure