Feb 15 2023
07:20 PM
- last edited on
Mar 05 2024
02:26 PM
by
TechCommunityAP
Feb 15 2023
07:20 PM
- last edited on
Mar 05 2024
02:26 PM
by
TechCommunityAP
In Azure Pipelines, we need to get source code of another organization's Azure Repos. Currently we use personal access token, but it links to a user who might leave the organization. Can we use a service principle to authenticate? How to grant the service principle access right to the other organization's Azure Repos?
Feb 15 2023 08:48 PM
Use a service principal to authenticate and access another organization's Azure Repos in Azure Pipelines.
Here are the steps to grant the service principal access rights:
Check out out document for further details .https://learn.microsoft.com/en-us/azure/devops/repos/git/set-git-repository-permissions?view=azure-d...
Mar 28 2023 12:46 AM
for the 2nd step, the organization level means Azure DevOps Organization? How to assign "Contributor" Role to service principle at the organization level?
Auzre DevOps API permission was granted to the service principle.
But I cannot find the service principle in Azure Devops organization users, project contributor, and repos security settings tab.
Mar 28 2023 06:38 AM - edited Mar 28 2023 07:17 AM
Azure DevOps, an organization is the top-level container that holds all your projects, teams, and other resources.To assign the "Contributor" role to a service principle at the organization level in Azure DevOps, you can follow these steps:
After completing these steps, the service principal should have the "Contributor" role at the organization level. If you cannot find the service principal in the Azure DevOps organization users, project contributor, and repos security settings tab, make sure that you have granted the appropriate Azure DevOps API permissions to the service principal and that it has been added to the appropriate security group with the "Contributor" role.
Apr 03 2023 12:35 AM
For step 8-12, I cannot find the "Add" button to add a new permission (role) for the security group, but can only set the permission for items listed.
Apr 04 2023 10:56 AM
Apr 04 2023 09:43 PM
Would like to share a similar post for reference:
Apr 06 2023 12:08 AM
Apr 07 2023 11:26 AM
Apr 13 2023 12:12 AM
Have added the service principle to the organization
Have granted the service principle "Project Reader" Role for the project
Have granted read access right to all repositories of the project.
But still got the error message when verify the service connection
Apr 14 2023 10:18 AM
Apr 18 2023 02:24 AM
Apr 19 2023 01:58 AM
May 21 2024 10:55 PM
@bbliang Could you pls tell how did you add azure devops permission to your service principal. Im unable to do so
Sep 08 2024 01:45 AM