Verifying "Restrict access to Microsoft Entra administration portal" Setting via API in Azure Entra ID

DiptiRanjan Swain 236 Reputation points
2025-08-12T14:48:12.2366667+00:00

How can a script be written to check the current setting of all options under user settings in Azure Entra ID? Specifically, what is the method to verify via API whether the "Restrict access to Microsoft Entra administration portal" option is turned on or off?

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
{count} votes

Accepted answer
  1. Raja Pothuraju 32,635 Reputation points Microsoft External Staff Moderator
    2025-08-14T16:01:39.3066667+00:00

    Hello DiptiRanjan Swain,

    At present, the "Restrict access to Microsoft Entra administration portal" setting can only be viewed through the Azure Portal / Entra Admin Center. There are currently no Graph API or PowerShell commands available to retrieve or update this setting.

    However, to fetch or update other details available in the User Settings blade, you can refer to the following documentation:

    How do I restrict access to the Entra Portal?

    • To restrict users from enumerating other users in the directory, the recommended approach is to modify the "defaultUserRolePermissions" in the tenant's AuthorizationPolicy and change the "allowedToReadOtherUsers" to FALSE Modify Default User Role Permissions in Graph

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.