Contents
How to make a SharePoint list or library read-only from SharePoint user interface:
- Go to List Settings >> Permissions for this list.
- Click on the “Stop Inheriting Permissions” button from the ribbon and confirm the prompt.
- Select All users >> Click on the “Edit User Permissions” button.
Go to List settings -> Advanced Settings and Select Allow management of content type then press Ok. , and click in the _hidden column. Set the column setting to Hidden and click Ok.
How to make SharePoint Online site read only using PowerShell?
Requirement: Set SharePoint Online site to read only using PowerShell. How to make a SharePoint Online site read only? During a migrated project, we wanted to set a SharePoint Online site collection to read-only in order to enforce Data consistency.
How to lock SharePoint Online site collection with PNP PowerShell?
Here is how to lock SharePoint Online site collection with PnP PowerShell: Write-Host “Site set to Read-Only Mode Successfully!” -f Green Here is my another post on making site read only using site policy: SharePoint Online: Make Site Collection Read only using Site Policies?
Prerequisite: You have to install cmdlets to work in PnP PowerShell. How to run PnP PowerShell command in SharePoint? First, open powershell ise. Make sure you run it in Administrator Mode. Now, copy and paste the code mentioned below and click on Run Script as shown in the screenshot.
How do I get my credentials in PowerShell?
First, open powershell ise. Make sure you run it in Administrator Mode. Now, copy and paste the code mentioned below and click on Run Script as shown in the screenshot. # If you do not wish to pass credentials hard coded then you can use: -Credentials (Get-Credential).