Control: 5.15 Ensure Guest Users are reviewed at least biweekly
Description
Guest users can be set up for those users not in your tenant to still be granted access to resources. It is important to maintain visibility for what guest users are established in the tenant.
Periodic review of guest users ensures proper access to resources in your tenant.
Remediation
To view guest users, use the Microsoft 365 Admin Center:
- Log in as an
administrator
. - Navigate to the
Users
andGuest Users
. - Review the list of users.
To verify Microsoft 365 audit log search is enabled, use the Microsoft Online PowerShell Module:
- Run Microsoft Online PowerShell Module.
- Connect using
Connect-MSOnline
. - Run the following PowerShell command:
Get-MsolUser -all | Where-Object {$_.UserType -ne "Member"} | Select-Object UserPrincipalName, UserType, CreatedDate
- Review the list of users.
Usage
Run the control in your terminal:
powerpipe control run microsoft365_compliance.control.cis_v140_5_15
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run microsoft365_compliance.control.cis_v140_5_15 --share
SQL
This control uses a named query:
azuread_guest_user_info