Control: 1.15 Ensure That 'Guest users access restrictions' is set to 'Guest user access is restricted to properties and memberships of their own directory objects'
Description
Limit guest user permissions.
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.
- Guest users have the same access as members (most inclusive),
- Guest users have limited access to properties and memberships of directory objects (default value),
- 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".
Remediation
From Azure Portal
- From Azure Home select the Portal Menu
- Select
Azure Active Directory
- Then
External Identities
- Select
External collaboration settings
- Under
Guest user access
, changeGuest user access restrictions
to beGuest user access is restricted to properties and memberships of their own directory objects
From Powershell
- From a Powershell session enter Set-AzureADMSAuthorizationPolicy - GuestUserRoleId '2af84b1e-32c8-42b7-82bc-daa82404023b'
- Check that the setting was applied by entering GetAzureADMSAuthorizationPolicy
- Make certain that the GuestUserRoleId is equal to the earlier entered value of 2af84b1e-32c8-42b7-82bc-daa82404023b.
Default Value
By default, Guest user access restrictions
is set to Guest user access is restricted to properties and memberships of their own directory objects
.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v150_1_15
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v150_1_15 --share
SQL
This control uses a named query:
ad_manual_control