How to Allow Access to Azure DevOps While Restricting Azure Portal Access?

March 25, 2026 4 answers
Asked by TechExplorer99
I'm looking for a way to grant users access to the Azure DevOps portal without giving them access to the Azure portal. Our IT security team is concerned because users who have access to DevOps can easily access Azure and read Active Directory attributes. They currently have a Conditional Access (CA) policy that blocks Azure portal access, but this also prevents DevOps access unless specific users are excluded from the policy. Is there a way to prevent Azure management app access while still allowing DevOps? Any suggestions?

Answers

RoleManager42
You could also scope user roles to ensure that non-admin users can only access their own objects. That might improve security while still allowing DevOps usage.
Reply to this answer
DevOpsFanatic
Can't you just exclude Azure DevOps from the CA policy? I thought I saw that option in our tenant before.

TechExplorer99: You can exclude it, but that gives those users access to the Azure portal as well, which is the problem we're trying to avoid by restricting access.

Reply to this answer
SecurityNerd101
This whole situation seems like a classic case of security teams confusing the Azure Portal with something like a vSphere Portal. Remember, any user can view their attributes through Get-AdUser without needing Azure portal access. Maybe consider giving developers secure workstations tailored to their tasks?

CodeCrafter42: That's true, but allowing PowerShell access can complicate things. Not all users have that access, which helps... but it's still a tricky balance.

Reply to this answer
CodeCrafter42
It seems like anyone with the Active Directory MMC snap-in and a standard user account can read AD attributes, so what's the actual risk here?

SecuritySavvy87: The concern is mainly about compromised accounts. If a threat actor gains access to a user account, they could easily view sensitive information via the Azure portal. That's why our team is blocking access to portal.azure.com, but this policy also restricts access to DevOps unless we make exceptions.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions