Skip to content

Restrict Access to Microsoft Entra Admin Center: The Toggle That Locks Nothing

215 recorded views?

If you want to control Microsoft Entra admin center access for non-admins, the Restrict access to Microsoft Entra admin center setting looks like the obvious answer. Flip it to Yes and non-admins can no longer poke around your directory. Job done, kettle on.

Except Microsoft’s own documentation says, in a caution box, that it is not a security measure. It hides a handful of popular pages from non-admins and that’s about it. Deep links still open most pages, PowerShell still works, Microsoft Graph still works, and anyone holding any admin role walks straight past it.

In this guide I test the setting in my lab tenant with a test user who has no admin roles, show what gets through, and then lock down Microsoft Entra admin center access properly with Conditional Access and app assignment. Everything here has been checked against Microsoft Learn, so you can quote it to your security team without crossing your fingers.

Never miss a guide: subscribe here and check out my YouTube channel.

The short version (for anyone whose coffee is going cold):

  • The user setting is the most common way admins try to limit Microsoft Entra admin center access, and it’s mostly cosmetic.
  • The Restrict access to Microsoft Entra admin center setting lives at Entra ID > Users > User settings > Administration center.
  • It only stops non-admins loading some frequently visited pages, such as Home, the tenant overview and the users list.
  • It doesn’t block deep links, Microsoft Graph PowerShell, the Graph API, Graph Explorer or users with any admin role.
  • The fix Microsoft recommends is a Conditional Access policy that blocks non-admins from Windows Azure Service Management API.
  • That policy doesn’t cover Microsoft Graph PowerShell, so close that gap by requiring assignment on the Microsoft Graph Command Line Tools and Graph Explorer apps.

What does Restrict access to Microsoft Entra admin center do?

Microsoft Learn describes Restrict access to Microsoft Entra admin center as “a layer of friction” for casual browsing. When it’s set to Yes, non-administrators can’t load a set of commonly visited pages in the Microsoft Entra admin center and the Azure portal, including Home, the tenant overview and the users list.

Learn is unusually blunt about what it doesn’t do:

What the setting doesWhat it doesn’t do
Stops non-admins loading Home, the tenant overview and the users listBlock programmatic access through PowerShell, the Microsoft Graph API or tools like Visual Studio
Stops non-admin group owners managing their groups in the portalApply to users with any administrative role, custom roles included
Stops non-admin app owners managing their apps in the admin center (per Learn’s app owner guidance)Stop someone with a deep link opening most other pages
Adds friction for the curiousCount as a security control

Gotcha: Group owners and app owners who aren’t admins lose their portal access too. If your service desk relies on business owners managing their own groups in the portal, they’ll need another route, such as My Groups, or a role.

If you want a particular non-admin, such as an auditor, to keep Microsoft Entra admin center access, Learn’s answer is to assign them a role like Global Reader. A role of any kind is enough to bypass the setting, which tells you everything about how strong it is.

Licensing and roles for this guide

RequirementDetail
The user settingAvailable in every edition, including Microsoft Entra ID Free
Conditional AccessMicrosoft Entra ID P1 (included in Microsoft 365 Business Premium, E3 and E5)
Assigning a group to an enterprise appMicrosoft Entra ID P1
Change the user settingGlobal Administrator in the admin center
Create the Conditional Access policyConditional Access Administrator at least
Change enterprise app propertiesCloud Application Administrator at least

Where to find Restrict access to Microsoft Entra admin center

In the portal the toggle is labelled Restrict access to Microsoft Entra admin center, while Microsoft Learn calls it Restrict access to Microsoft Entra administration portal. Same setting, two names. Microsoft naming strikes again.

  1. Sign in to the Microsoft Entra admin center at https://entra.microsoft.com.
  2. Go to Entra ID > Users > User settings.
  3. Under Administration center, set Restrict access to Microsoft Entra admin center to Yes.
  4. Select Save.
Restrict access to Microsoft Entra admin center set to Yes under Administration center in Entra user settings
The setting in my lab tenant. One toggle, one heading, a lot of misplaced confidence.

Good to know: I couldn’t find a Microsoft Graph property for this setting in the Learn documentation, and a Microsoft Q&A answer says there’s no Graph or PowerShell way to read or change it. Expect it to be missing from configuration-as-code exports, so check it by eye when you review a tenant.

My lab setup

My Microsoft 365 E5 developer tenant already had Restrict access to Microsoft Entra admin center switched on, which made it a fair test of Microsoft Entra admin center access for a normal user. The important part is the test user. Learn says the setting doesn’t apply to anyone with an admin role, so I checked roles first.

That ruled out my usual long-suffering test user, Olavi King, who turned out to be a Global Administrator and Intune Administrator. In my defence, it’s a lab. Filipe and Gabriel had roles too, one of them scoped to an administrative unit. José Teixeira had nothing, active or eligible, so José got the job.

Lab itemWhat I used
TenantMicrosoft 365 E5 developer tenant
Restrict access settingYes
Test userJosé Teixeira, no active or eligible Entra roles
Admin accountMy own Global Administrator account in a separate browser
Break glass accountExcluded from every policy in this guide

Test 1: José opens the Microsoft Entra admin center

I signed José in to https://entra.microsoft.com in a separate browser. His Microsoft Entra admin center access stopped at the front door: instead of Home he got You don’t have access, with error code 401.

The groups list was blocked as well, with the most honest error message I’ve seen from Microsoft: “User has no admin roles. Current directory do not allow non admin users to access portal”. Enterprise applications and the Conditional Access policies page were blocked too. So far, the toggle was earning its keep.

Microsoft Entra admin center access blocked for a non-admin user by the Restrict access setting
José meets the toggle. Grammar aside, the error message is admirably direct.

Next I gave José a direct link to Entra ID > Devices > All devices. It loaded straight away. José, a user with no roles at all, could browse every device in the tenant, eight of them, with their names, operating system versions and join types, and a Download devices button sat at the top of the list.

Microsoft Entra admin center access through a deep link, with a non-admin viewing all devices while the restriction is on
Same user, same toggle, different URL. Eight devices and a Download button for someone with no admin roles.

This is exactly what Learn warns about: most pages remain reachable with a direct link, so Microsoft Entra admin center access is only hidden, not removed. A deep link can come from a colleague, an old bookmark, a search result or a helpful forum post, so the toggle only protects the front door while the side windows stay open.

Test 3: Microsoft Graph ignores the toggle completely

The portal is only one way in, and blocking Microsoft Entra admin center access does nothing for the others. Learn states that Restrict access to Microsoft Entra admin center doesn’t block programmatic access through PowerShell, the Microsoft Graph API or tools like Visual Studio, and its default permissions table shows that member users can enumerate all users, groups and devices.

So, if your user consent settings allow it, any member user can install the Microsoft Graph PowerShell SDK and list the directory in two lines. No portal, no toggle, no error message.

# Run by an ordinary member user, not an admin
Connect-MgGraph -Scopes "User.ReadBasic.All"
Get-MgUser -All | Select-Object DisplayName, UserPrincipalName

I didn’t bother screenshotting this one. The setting isn’t involved, and Microsoft says so in writing.

Three gaps in Microsoft Entra admin center access, and three fixes

Three tests in, the pattern is clear. Here’s what gets past Restrict access to Microsoft Entra admin center and what closes each gap.

GapEvidenceFix
Deep linksJosé browsed All devices with the toggle onA Conditional Access policy that blocks non-admins from Windows Azure Service Management API
Microsoft Graph and PowerShellMicrosoft Learn says the setting doesn’t block programmatic accessAssignment required on the Microsoft Graph Command Line Tools and Graph Explorer apps
Anyone with a roleLearn says the setting doesn’t apply to users with any admin role, custom roles includedExclude a named admin group from the policy, so having a role isn’t an automatic pass

How to control Microsoft Entra admin center access with Conditional Access

To control Microsoft Entra admin center access properly, Learn’s recommendation is a Conditional Access policy that targets Windows Azure Service Management API. Despite the name, that one resource covers a group of services bound closely to the portal.

Covered directlyAffected indirectly (examples from Learn)
Azure Resource ManagerAzure CLI
Azure portal, which includes the Microsoft Entra admin centerAzure PowerShell
Azure Data LakeMicrosoft 365 admin center
Application Insights APIAzure Data Factory portal
Log Analytics APIVisual Studio subscriptions administrator portal

Two things on that list matter for this guide. First, the Microsoft 365 admin center can be affected too, so test anything your non-admins use there before you switch the policy on. Second, Learn states plainly that this resource doesn’t apply to Microsoft Graph PowerShell, which calls the Microsoft Graph API instead. I deal with that in the next section.

Gotcha: Conditional Access policies on Windows Azure Service Management API no longer cover Azure DevOps. If someone in your organisation assumes otherwise, now is a good time to correct them.

Build the policy

This is the policy I built to block Microsoft Entra admin center access for non-admins. In the lab I scoped it to José so I didn’t lock out anyone else. In production, include All users and exclude your admins.

SettingProduction valueMy lab value
NameCA BLOCK Azure Management Non-AdminsCA BLOCK Azure Management Non-Admins
Users > IncludeAll usersJosé Teixeira
Users > ExcludeBreak glass accounts and an admin groupBG Admin
Target resourcesWindows Azure Service Management APIWindows Azure Service Management API
GrantBlock accessBlock access
Enable policyReport-only first, then OnOn

Gotcha: Exclude admins with a group, not with the Directory roles option. Learn says the role condition only supports built-in roles, not custom roles or roles scoped to an administrative unit. Anyone who does their admin work through one of those would be blocked. One of my test users, Filipe, holds User Administrator scoped to an administrative unit, so he’d have been the first casualty.

If your admins use Privileged Identity Management, be careful with role-based exclusions for another reason. Learn’s own example talks about users actively assigned a role, and policies that target roles are only evaluated when a token is issued. An eligible admin who hasn’t activated yet may not count as an admin. Test that your eligible admins can still reach the PIM activation page before you switch the policy on, or exclude them by group and avoid the question altogether.

Test it before you switch it on

Leave the policy in Report-only for a few days and check the sign-in logs for who would have been blocked. The Conditional Access What If tool is quicker for a spot check: pick the test user, select Windows Azure Service Management API as the target resource, and confirm the policy applies to them and not to your break glass account. My guide to the Conditional Access What If tool walks through it.

Test 4: José tries again

I switched the policy on and sent José back to the same devices deep link. Here’s the twist: his existing admin center session carried on working for a while, because Conditional Access is evaluated when a token is issued, not on every click. As soon as the portal needed a fresh token, his Microsoft Entra admin center access was gone: You don’t have access to this, with error code 53003.

Conditional Access blocking Microsoft Entra admin center access for a non-admin user with error 53003
The real lock. Note the app name: Azure Portal, even though José was signing in to the Microsoft Entra admin center.

Learn lists 53003 as BlockedByConditionalAccess, meaning the policy doesn’t allow a token to be issued. The app name in the details is Azure Portal, which matches Learn’s note that the Azure portal app also covers the Microsoft Entra admin center. To see which policy did the blocking, open the failed sign-in in the sign-in logs and check its Conditional Access tab.

Good to know: When you test this yourself, sign the test user out completely or use a fresh private window after you switch the policy on. Otherwise you’ll spend ten minutes wondering why nothing happened. Ask me how I know.

Close the Microsoft Graph PowerShell and Graph Explorer gap

The Conditional Access policy blocks the Azure portal and the Microsoft Entra admin center, and with them Azure PowerShell and Azure CLI. Removing Microsoft Entra admin center access doesn’t touch Microsoft Graph PowerShell or Graph Explorer, though, and both will happily list your directory for any member user.

You can’t target Microsoft Graph PowerShell itself in Conditional Access, because it’s a client app and policies apply to the resource being called, not the app calling it. Microsoft’s own education guidance requires user assignment on the Microsoft Graph PowerShell app and blocks Graph Explorer with a Conditional Access policy. Requiring assignment on both apps is the simpler, consistent option, so that’s what I recommend.

Enterprise appApplication ID
Microsoft Graph Command Line Tools (Microsoft Graph PowerShell)14d82eec-204b-4c2f-b7e8-296a70dab67e
Graph Explorerde8bc8b5-d9f9-48b1-a8ad-b748da725064

With Assignment required set to Yes, only assigned users and groups can get a token for the app. Everyone else is refused at sign-in.

Assignment required setting on the Microsoft Graph Command Line Tools enterprise app used to restrict access beyond the Microsoft Entra admin center
Microsoft Graph Command Line Tools in my tenant, with Assignment required still set to No. Flip it to Yes only after your admin group is assigned.

Gotcha: Learn notes that users with the Global Administrator role can sign in to apps regardless of the assignment required setting. That’s fine for this purpose, but don’t use assignment required to stop a compromised Global Administrator. Nothing on this page will.

Here’s the PowerShell I’d use. It creates the service principals if they don’t exist yet, assigns an admin group first, and only then turns on assignment required, so you don’t lock out your own team halfway through. It stops if the group can’t be found, rather than carrying on regardless. Group assignment needs Microsoft Entra ID P1, and it has to be a security group with direct members, because nested groups aren’t supported for app assignment.

# Requires the Microsoft Graph PowerShell SDK and Cloud Application Administrator or higher
Connect-MgGraph -Scopes "Application.ReadWrite.All","AppRoleAssignment.ReadWrite.All","Group.Read.All"

# The security group whose members may use Graph PowerShell and Graph Explorer
$adminGroup = Get-MgGroup -Filter "displayName eq 'SG-Graph-Tools-Allowed'"
if (@($adminGroup).Count -ne 1) { throw "Expected exactly one group named SG-Graph-Tools-Allowed" }

# Microsoft Graph Command Line Tools and Graph Explorer
$appIds = @(
    "14d82eec-204b-4c2f-b7e8-296a70dab67e",
    "de8bc8b5-d9f9-48b1-a8ad-b748da725064"
)

foreach ($appId in $appIds) {
    # Create the enterprise app in your tenant if nobody has used it yet
    $sp = Get-MgServicePrincipal -Filter "appId eq '$appId'"
    if (-not $sp) {
        $sp = New-MgServicePrincipal -AppId $appId -ErrorAction Stop
    }

    # Assign the admin group with the default app role, unless it's already assigned
    $existing = Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $sp.Id -All |
        Where-Object PrincipalId -eq $adminGroup.Id
    if (-not $existing) {
        New-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $sp.Id `
            -ResourceId $sp.Id `
            -PrincipalId $adminGroup.Id `
            -AppRoleId "00000000-0000-0000-0000-000000000000" `
            -ErrorAction Stop
    }

    # Only now require assignment
    Update-MgServicePrincipal -ServicePrincipalId $sp.Id -BodyParameter @{ appRoleAssignmentRequired = $true } -ErrorAction Stop

    Write-Output "$($sp.DisplayName): assignment required, $($adminGroup.DisplayName) assigned"
}

Run it in a test tenant first, and make sure the account running it is in the admin group. Users who aren’t assigned get an error at sign-in telling them they aren’t assigned to the application, which is much better than them quietly exporting your user list to CSV.

Gotcha: Once assignment is required, users can no longer consent to that app for themselves. Grant admin consent for the Graph scopes your admins use in Graph PowerShell and Graph Explorer, or the ones without Global Administrator will hit a consent wall.

What Microsoft Entra admin center access controls still can’t stop

Even with all of this in place, member users can still read a lot of the directory. Teams, Outlook and the people picker in most Microsoft 365 apps rely on it, and any app a user consents to with permissions such as User.ReadBasic.All can read basic profiles too.

Learn does document a Read other users switch on the authorization policy that stops non-admins reading user information, but it’s meant for special circumstances and Microsoft doesn’t recommend it, because it can break user lookups in services like Teams. I’d leave it alone unless you enjoy explaining to the board why nobody can find anyone in Teams.

The realistic goal for Microsoft Entra admin center access is to remove the easy tools, not to make the directory invisible. Pair this guide with sensible user consent settings so users can’t grant directory permissions to any app that asks nicely.

Microsoft Entra admin center access gotchas

Microsoft 365 admin center. Because the Conditional Access policy affects the Microsoft 365 admin center indirectly, check anything your non-admins use there before you switch the policy on.

Group and app owners. The user setting already removes Microsoft Entra admin center access for non-admin owners managing their groups and apps, and the Conditional Access policy removes the Azure portal route as well. Point group owners at My Groups, or give app owners a role scoped to the app.

Azure users without Entra roles. People who only hold Azure RBAC roles on subscriptions, such as developers and resource owners, are non-admins as far as this policy is concerned. Blocking Windows Azure Service Management API takes away their Microsoft Entra admin center access, Azure portal, Azure CLI and Azure PowerShell, so add them to the exclusion group or scope the policy before you switch it on.

Service accounts. Calls made by service principals aren’t blocked by Conditional Access policies scoped to users, so this policy won’t break app-only automation. Accounts that sign in as users are another matter, so exclude any you can’t replace.

Report-only first. A block policy on Microsoft Entra admin center access is exactly the sort of thing you want to watch in Report-only for a few days. Exclude your break glass accounts on day one, and if you haven’t set them up yet, start with my guide to Microsoft 365 break glass accounts.

Token timing. Changes to group or role membership only take effect when a new token is issued, so a user you’ve just added to the admin group may need to sign out and back in.

Should you turn on Restrict access to Microsoft Entra admin center?

Yes, turn on Restrict access to Microsoft Entra admin center, but treat it as a speed bump, not a barrier. It costs nothing, it stops the curious clicking through your users list on day one, and it reduces the “I was just having a look” tickets.

Just don’t let it be the only control on Microsoft Entra admin center access. The setting is the paint on the door; the Conditional Access policy is the lock, and app assignment covers the window round the back that Graph PowerShell climbs through. If you only have time for one change today, make it the Conditional Access policy in Report-only.

FAQs

Who still gets Microsoft Entra admin center access when the setting is on?

Anyone with an administrative role, including custom roles, plus anyone with a direct link to most pages. Non-admins are only stopped from loading a set of popular pages such as Home, the tenant overview and the users list.

Does Restrict access to Microsoft Entra admin center block PowerShell?

No. Microsoft Learn states that it doesn’t block programmatic access through PowerShell, the Microsoft Graph API or tools like Visual Studio. Require assignment on the Microsoft Graph Command Line Tools app to restrict Microsoft Graph PowerShell.

Does Restrict access to Microsoft Entra admin center apply to admins?

No. It doesn’t apply to users with any administrative role, including custom roles. Assigning a role such as Global Reader is how Microsoft suggests letting a specific non-admin back in.

What licence do I need to control Microsoft Entra admin center access properly?

The user setting works in every edition. The Conditional Access policy and group assignment to enterprise apps both need Microsoft Entra ID P1, which is included in Microsoft 365 Business Premium, E3 and E5.

Does blocking Windows Azure Service Management API block Microsoft Graph PowerShell?

No. Learn says that resource applies to Azure PowerShell, which calls Azure Resource Manager, and not to Microsoft Graph PowerShell, which calls the Microsoft Graph API.

Can I check Restrict access to Microsoft Entra admin center with Microsoft Graph?

I couldn’t find a Graph property for it on Microsoft Learn, and a Microsoft Q&A answer says there’s no Graph or PowerShell way to read or change it. Check it in the admin center under Entra ID > Users > User settings.

Will the Conditional Access policy block the Microsoft 365 admin center?

It can. Learn lists the Microsoft 365 admin center among the services indirectly affected by policies on Windows Azure Service Management API, so test it in Report-only first.

Further reading

Found this useful? Buy me a coffee, and if you handle subject access requests, have a look at Redact Ninja for redacting PDFs without sending files to a server.

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *