Back to controls

Ensure 'Guest users access restrictions' is set to 'Guest user access is restricted to properties and memberships of their own directory objects'

Limit guest user permissions.

Category

Controls

Low

Applies to

Microsoft Entra ID

Coverage

1 queries

Asset types

1 covered

Overview

Limit guest user permissions.

Rationale

Limiting guest access ensures that guest accounts do not have permission for certain directory tasks, such as enumerating users, groups, or other directory resources, and cannot be assigned to administrative roles in your directory. Guest access has three levels of restriction.

  1. Guest users have the same access as members (most inclusive),
  2. Guest users have limited access to properties and memberships of directory objects (default value),
  3. Guest user access is restricted to properties and memberships of their own directory objects (most restrictive).

The recommended option is the 3rd, most restrictive: "Guest user access is restricted to their own directory object".

Impact

This may create additional requests for permissions to access resources that administrators will need to approve.

Certain services might have compatibility issues with this setting.

Default Value

By default, Guest user access restrictions is set to Guest users have limited access to properties and memberships of directory objects.

Remediation guidance

From Azure Portal

  1. Open External Identities | External collaboration settings
  2. Under Guest user access, change Guest user access restrictions to Guest user access is restricted to properties and memberships of their own directory objects.

From PowerShell

  1. From a PowerShell session, enter Set-AzureADMSAuthorizationPolicy -GuestUserRoleId '2af84b1e-32c8-42b7-82bc-daa82404023b'
  2. Check that the setting was applied by entering Get-AzureADMSAuthorizationPolicy
  3. Make sure the GuestUserRoleId is equal to 2af84b1e-32c8-42b7-82bc-daa82404023b.

Service-wide remediation

Recommended when many resources are affected: fix the platform baseline first so new resources inherit the secure setting, then remediate the existing flagged resources in batches.

Microsoft Entra ID

Use tenant-wide Conditional Access, role settings, authentication policies, and identity governance baselines so the control is enforced centrally.

Operational rollout

  1. Fix the baseline first at the account, subscription, project, cluster, or tenant scope that owns this control.
  2. Remediate the currently affected resources in batches, starting with internet-exposed and production assets.
  3. Re-scan and track approved exceptions with an owner and expiry date.

Query logic

These are the stored checks tied to this control.

Entra with permissive guest user restrictions

Connectors

Microsoft Entra ID

Covered asset types

Connector

Expected check: eq []

{
  connectors(
    where: {
      authorizationPolicy: {
        NOT: { guestUserRoleId: "2af84b1e-32c8-42b7-82bc-daa82404023b" }
      }
    }
  ) {
    ...AssetFragment
  }
}
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon