Forum Discussion
kevingeorget
Apr 10, 2019Brass Contributor
To make site inaccessible for normal users and accessible for SP Admins SPO
Hi SharePoint Users,
I've currently have a live site collection with more than 100 users in it. Due to legal compliance, i need to lock down the site for a temporary period for all the normal users. The site should be accessible only administrators during this period.
One way would be to remove all the users from different groups and add them back again later ( which would be a tedious task).
Another one would be using below PS code-
Set-SPOSite -Identity "" -LockState NoAccess
But this blocks out access for everyone including administrators.
Any other smart way of doing this through UI or PowerShell?
Many thanks,
Kevin
kevingeorget Temporarily remove access to the group that contains the 100 users and grant full control to a group with the admins. If the underlying container is a SharePoint Group or AD Group you can always add it back in after the fact. Alternatively, you should be able to use eDiscovery to target a site gather the documents and data for a case and place holds on the content but still allow people to do their work.
- TimLBSteel Contributor
kevingeorget Temporarily remove access to the group that contains the 100 users and grant full control to a group with the admins. If the underlying container is a SharePoint Group or AD Group you can always add it back in after the fact. Alternatively, you should be able to use eDiscovery to target a site gather the documents and data for a case and place holds on the content but still allow people to do their work.
- kevingeorgetBrass ContributorThank you Timothy...I removed the access to the group and works for me.