Azure Devops AgentPools Access Denied to perform this action: Administer Permissions

199 views Asked by At

I Have Azure DevOps on-prem Version Azure DevOps Server 2020 Update 1.1

I have a project collection administrator privilege.

when I try to create a new agent pool or add an agent to the current agent pool I get an error that says

Access denied. Ahmed A. Sobeeh needs Manage permissions to perform the action. For more information, contact the Azure DevOps Server administrator.

if I tried to add myself as admin on the agent pool security git the below error

Access Denied: System.Security.Principal.WindowsIdentity;S-1-5-21-2315945116-4195333612-642830686-21480 needs the following permission(s) on the resource AgentPools to perform this action: Administer Permissions

  • I added my user as a project collection administrator privilege.

  • I tried to add myself as admin on the agent pool security git the below error

Access Denied: System.Security.Principal.WindowsIdentity;S-1-5-21-2315945116-4195333612-642830686-21480 needs the following permission(s) on the resource AgentPools to perform this action: Administer Permissions

1

There are 1 answers

0
Ahmed Sobeeh On BEST ANSWER

After some investigation, I found that the solution to this problem was to add my Active Directory (AD) account, the one I use to log in, as a Windows Server admin on the machine itself.

This step resolved the permission issues, and I was then able to add myself as an agentpool admin and then create agent pools and add agents without encountering any access-denied errors.

I hope this solution helps others facing a similar problem. If you have any questions or need further clarification, feel free to ask.