Check ID: entra_policy_guest_users_access_restrictions
Provider: Azure
Service: entra
Severity: MEDIUM
Categories: identity-access, e3
Resource type: NotDefined

What this check verifies

Microsoft Entra authorization policy guest settings are assessed to determine whether guest user access is limited to the properties and memberships of their own directory objects (Restricted access) instead of broader visibility into users and groups

Risk

Excess guest visibility enables directory reconnaissance, exposing user and group details for phishing, password spraying, and targeted attacks. This weakens confidentiality and can facilitate privilege escalation and lateral movement through informed abuse of group memberships and access paths.

Recommendation

Apply least privilege to external users:
  • Set guest access to Restricted access so guests can only view their own directory objects
  • Avoid assigning admin roles to guests; use PIM for rare exceptions
  • Constrain external collaboration and group visibility, and run periodic access reviews to remove stale guest access

Remediation

az rest --method patch --url https://graph.microsoft.com/v1.0/policies/authorizationPolicy/authorizationPolicy --body '{"guestUserRoleId":"2af84b1e-32c8-42b7-82bc-daa82404023b"}'

References

Where this check fires

This check runs on every scheduled scan against your Azure account. Findings appear at Cloud Security → Findings filterable by Check ID = entra_policy_guest_users_access_restrictions. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Azure checks