blog.icewolf.ch

Let's talk about IT!
posts - 2198, comments - 295, trackbacks - 0

My Links

Archives

Post Categories

icewolf

Azure AD User setting Tenant Creation

Hi All,

Since a few Days there is a new Setting in Azure AD User Settings "Tenant creation"

Per default this setting is set to "Yes". Means that a user with can create a new Azure AD Tenant.
"No" means that only users with "Global Administrator" or "Tenant Creator" Admin Role can create Azure AD Tenants.


I can't think much of a Szenario where this should be enabled. So setting this to "No" is a secure configuration.


You can have a look ath the Authorization Policy with the Graph Explorer

GET https://graph.microsoft.com/beta/policies/authorizationPolicy



You can view and change the Setting with PowerShell.

Connect-MgGraph -Scopes Policy.Read.All, Policy.ReadWrite.Authorization
Select-MgProfile -Name "beta"
Get-MgPolicyAuthorizationPolicy | fl
(Get-MgPolicyAuthorizationPolicy).DefaultUserRolePermissions
(Get-MgPolicyAuthorizationPolicy).DefaultUserRolePermissions.AdditionalProperties | fl



Allow Tenant creation for Users

#Users can create Tenants
$Param = @"
    {"allowedToCreateTenants": true}
"@
Update-MgPolicyAuthorizationPolicy -AuthorizationPolicyId "authorizationPolicy" -DefaultUserRolePermissions $Param


Disable Tenant creation for users

#Users can't create Tenants
$Param = @"
    {"allowedToCreateTenants": false}
"@
Update-MgPolicyAuthorizationPolicy -AuthorizationPolicyId "authorizationPolicy" -DefaultUserRolePermissions $Param




Regards
Andres Bohren


Print | posted on Thursday, November 24, 2022 2:07 PM |

Powered by:
Powered By Subtext Powered By ASP.NET