Forum Discussion
Nigel Witherdin
Mar 14, 2018Iron Contributor
SharePoint Online Unlocking a Site set to No Access
Hey,
Investigating how we could archive site collections in place on SharePoint Online, I used the PnP PowerShell cmdlet:
Set-PnPTenantSite -Url <site coll url> -LockState NoAcces -Wait
This lo...
- DeletedMar 14, 2018Try
Connect-SPOService -Url https://tenant-admin.sharepoint.com
Set-SPOSite -Identity https://tenant.sharepoint.com/sites/sitecollection -LockState "Unlock"
Deleted
Mar 14, 2018Don’t use the pnp stuff, use the regular SharePoint online powershell and the set-sposite commandlet. Let me find my command in my notes if i have it.
Deleted
Mar 14, 2018Try
Connect-SPOService -Url https://tenant-admin.sharepoint.com
Set-SPOSite -Identity https://tenant.sharepoint.com/sites/sitecollection -LockState "Unlock"
Connect-SPOService -Url https://tenant-admin.sharepoint.com
Set-SPOSite -Identity https://tenant.sharepoint.com/sites/sitecollection -LockState "Unlock"
- Nigel WitherdinMar 14, 2018Iron Contributor
Awesome - that sorted it!
- Apr 09, 2018
The reason you failed to be able to unlock the site using PnP PowerShell was due to a bug in our code. We first tried to update other settings in the site before changing the unlock state. That caused the error message. We will fix that for the upcoming build.
- Nigel WitherdinApr 09, 2018Iron Contributor
Awesome! Any chance of supporting all four lockstates:
- Unlock Unlocks the site collection and makes it available to users
- NoAdditions Prevents users from adding new content to the site collection. Updates and deletions are still allowed
- ReadOnly Prevents users from adding, updating, or deleting content.
- NoAccess Prevents access to content completely. Users who attempt to access the site receive an access-denied message.
or do they only apply to Sharepoint On-Prem?
Thanks again!