Control: 5.15 Ensure Guest Users are reviewed at least biweekly
Description
Guest users can be set up for those users not in the organization to still be granted access to resources. It is important to maintain visibility for what guest users are established in the tenant.
Ensure Guest Users are reviewed no less frequently than biweekly.
NOTE: With the E5 license an access review can be configured to review guest accounts automatically on a reoccurring basis. This is the preferred method if the licensing is available.
Periodic review of guest users ensures proper access to resources.
Remediation
To review guest users in the UI:
- Navigate to
Microsoft 365 admin center
https://admin.microsoft.com/. - Click to expand
Users
and selectGuest Users
. - Review the list of users.
To verify Microsoft 365 audit log search is enabled using Microsoft Graph PowerShell:
- Connect using
Connect-MgGraph -Scopes
"User.Read.All
" - Run the following PowerShell command:
Get-MgUser -All -Property UserType,UserPrincipalName | Where {$_.UserType -ne "Member"} | Format-Table UserPrincipalName, UserType
- Review the list of users. If nothing is returned then there are no guest users.
Usage
Run the control in your terminal:
powerpipe control run microsoft365_compliance.control.cis_v200_5_15
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run microsoft365_compliance.control.cis_v200_5_15 --share
SQL
This control uses a named query:
azuread_guest_user_info