Verify that 'Guest invite restrictions' is set to 'Only users assigned to specific admin roles can invite guest users'
Why this matters
Allowing any userβincluding guests and non-adminsβto invite external users into your tenant presents a serious security risk. It increases the attack surface, weakens identity governance, and undermines the principle of least privilege. Restricting guest invitations to specific admin roles ensures controlled onboarding of external identities and reduces the likelihood of unauthorized access.
What this check does
This Auto Check verifies whether guest invite permissions are restricted to users assigned to specific admin roles.
Check Logic
Passes if:
AllowInvitesFrom
is set toadminsAndGuestInviters
.
Fails if:
- The setting is configured to allow broader groups (e.g.
everyone
,none
, oradminsAndUserMember
).
Applies to:
- Microsoft Entra ID (formerly Azure Active Directory)
How to fix it
Azure Portal
- Go to Microsoft Entra ID from the Azure Portal.
- Under Manage, select External Identities.
- Click on External collaboration settings.
- Under Guest invite settings, set Guest invite restrictions to:
Only users assigned to specific admin roles can invite guest users
. - Click Save.
PowerShell
Connect-MgGraph
Update-MgPolicyAuthorizationPolicy -AllowInvitesFrom "adminsAndGuestInviters"
Exceptions
There are no legitimate exceptions for production environments. If temporary broader access is required (e.g. during a migration), it must be time-bound and logged.