Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
938 views
in SharePoint Online by 31 37 42
edited by
How can I temporarily prevent access to a SharePoint site collection in SharePoint Online without removing it or deleting the user permissions?

1 Answer

1 like 0 dislike
by 163 204 403
selected by
 
Best answer

Lock access for SharePoint Online Site Collection.

In SharePoint Online, you can use the below PowerShell to lock access to a site collection without deleting it.

Set-SPOSite https://melqassas.sharepoint.com/sites/DemoSites -lockstate NoAccess

See also Prevent access to site collection SharePoint Server 2019

If you don’t ask, the answer is always NO!
...