Remediation
From Azure Portal
- In the Azure portal, open the portal menu.
- Select
Microsoft Entra ID. - Under
Manage, selectExternal Identities. - Select
External collaboration settings. - Under
Guest user access, setGuest user access restrictionstoGuest user access is restricted to properties and memberships of their own directory objects. - Click
Save.
From PowerShell
-
Enter the following to update the policy ID:
Update-MgPolicyAuthorizationPolicy -GuestUserRoleId "2af84b1e-32c8-42b7-82bc-daa82404023b" -
Check the GuestUserRoleId again:
(Get-MgPolicyAuthorizationPolicy).GuestUserRoleId -
Ensure that the
GuestUserRoleIdis equal to the earlier entered value of2af84b1e-32c8-42b7-82bc-daa82404023b.