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:
- PowerShell: Update-MgBetaPolicyAuthorizationPolicy
- Graph API: authorizationPolicy resource type
- defaultUserRolePermissions resource type - Microsoft Graph v1.0 | Microsoft Learn to restrict user permissions.
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