Relative Content

Tag Archive for azure-devopsazure-devops-rest-api

How to retrieve user’s PAT to cast a vote

We have an app that acts like a layer in-between Azure Repos and the users. We are using a PAT of a service account, everything works properly except the voting, because we cannot vote on behalf of another user. Therefore we are investigating how to retrieve the specific user’s PAT.

How to assign organization-level permissions to create repositories across all projects in your organization in Azure DevOps?

I am creating automation for Azure DevOps. I want to follow the principle of least privilege. I only need to grant permissions to create repositories across all projects in the organization. I know how to do it at the project level, but for organizations with many projects, assigning permissions at the project level would be time-consuming. Do you know and can you give me an example of how to grant permissions to create repositories at the level of the entire organization?