In this article, I’ll show you how to allow anonymous users to add items to a SharePoint list using the PowerShell script. We have the following requirements for script:
- Allow user to input Site URL and List Name
- Check to see if the list has Unique permissions or not
- If not, we will reset broken inheritance first and then set anonymous access to it
- If yes, we will only set anonymous access on it
When setting anonymous access to a list, we need to identify the following permissions:
AddListItems, Open, OpenItems, ViewListItems, ViewVersions, ViewFormPages, ViewPages, UseClientIntegration, UseRemoteAPIs
How does it work?
Download AnonymousList.ps1 file to your server.
Run PowerShell script and input URL site; List Name. Click Enter
Go to your list URL with Anonymous Access to add a new item.