Granular permissions, such as permissions on individual documents or list items, in SharePoint can be difficult to manage and identify. We can identify permissions given to content in PowerShell. In this recipe, we will check the anonymous status of a SharePoint site, which content in the site provides permissions to anonymous users, and which content does not.
Follow these steps to identify anonymous access to content using PowerShell:
Get the SharePoint site with the
Get-SPWeb
Cmdlet:$web = Get-SPSite http://sharepoint
Output the anonymous access configuration for the site from the
AnonymousState
property as follows:$web.AnonymousState
Output the lists in the site that provide permissions to anonymous users by filtering the site lists on the
AnonymousPermMask64
property. TheAnonymousPermMask64
property contains the permissions granted to anonymous users. TheEmptyMask
value indicates that no permissions have been...