In Azure DevOps you might have encountered the situations where pipelines failing with error message mentioning the user with a given GUID does not have permission to run the pipeline or access Azure DevOps artifacts. Solution is giving the right permission to the user. This blog explains how to find the right user who need the permission.
Copy the GUID of the user from Azure DevOps pipeline logs.
If you try to give permission using the GUID, it does not show the user for the GUID.
You have to find the relevant user using the GUID in the error message in Azure DevOps pipeline. You can use following Azure DevOps API command to list all the users in Azure DevOps organization and find the user who belongs to the GUID.
https://vssps.dev.azure.com/{organization}/_apis/graph/users?api-version=7.1-preview.1
Once found the user who is having the GUID, apply the relevant permission to that user.
No comments:
Post a Comment