I’m newbbie on Azure DEVOPS CLI, and I need assign an specific user to all projects in my organization using AZURE DEVOPS CLI. The total of projects of the organization it´s about 25 projects.
Greetings.
I’m newbbie on Azure DEVOPS CLI, and I need assign an specific user to all projects in my organization using AZURE DEVOPS CLI. The total of projects of the organization it´s about 25 projects.
Greetings.
2
Answers
You can use below command to assign user to entire organization, Once the user is assigned at the organization level, The user has access to all the Projects inside it. Reference here.
Command:-
Output:-
To add a user to all projects in your organization using Azure DevOps CLI, you can refer to the followings.
Prerequisites
Steps
Sample
The following PowerShell scripts add the user to the Readers group of all projects. Replace the value of
userEmail
,organization
,AZURE_DEVOPS_EXT_PAT
anddisplayName
based on your requirement.