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...
- AnonymousMar 14, 2018Try
Connect-SPOService -Url https://tenant-admin.sharepoint.com
Set-SPOSite -Identity https://tenant.sharepoint.com/sites/sitecollection -LockState "Unlock"
Anonymous
Mar 14, 2018Yeah, if your not on a global admin account most likley you'll need to be added back as a site collection admin by one before you can make changes to that site collection.
Nigel Witherdin
Mar 14, 2018Iron Contributor
Hey,
Went and saw someone who has global tenancy admin access - and he couldn't select the site in the SharePoint Admin Control panel either ?!?
Anyone have any ideas before I go raise an MS ticket
Thanks
- Nigel WitherdinMar 14, 2018Iron Contributor
Still no good - tried getting him to connect to the site via PowerShell (access denied), then by connecting to the tenancy (the *-admin.sharepoint.com url) and running the "Set-PnPTenantSite" cmdlet on that site and he got "Set-PnPTenantSite : Access to this Web site has been blocked."
- AnonymousMar 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.
- AnonymousMar 14, 2018Try
Connect-SPOService -Url https://tenant-admin.sharepoint.com
Set-SPOSite -Identity https://tenant.sharepoint.com/sites/sitecollection -LockState "Unlock"
- AnonymousMar 14, 2018The admin panel isn't going to allow unlock etc. you have to do this via powershell.