I'm using SharePointOnline's Modern UI.

I'd like to remove all user permissions for our maintenance.

However, there are individual permissions that do not inherit the permissions of the site, so it does not seem easy to do.

OOTB maintenance mode cannot be used because even the backend cannot be updated.

Is there a way to control the permissions of all users at once, including permissions that do not inherit site permissions? I want to put it back when the maintenance is over.

I am very grateful for any ideas.

  • what kind of maintenance are you performing on the site? will you need write access during this time or are you just updating web parts via the app catalog? Dec 2, 2020 at 12:38
  • @CallumCrowley I want to update many list items by PowerAutomate.And replace some Flows.
    – Hyonta
    Dec 3, 2020 at 0:55

1 Answer 1


I don't think controlling permission and adding back would be right or easy way....

Alternately You can make Site Read only for your maintenance period. Try below PowerShell

$SiteURL = "https://yourtenant.sharepoint.com/sites/marketing" 
#Connect to SharePoint Online 
Connect-SPOService -Url $AdminCenterURL -Credential (Get-Credential) 
#PowerShell to set sharepoint online site to read only 
Set-SPOSite -Identity $SiteURL -LockState ReadOnly
  • I know how to make it Read only, but we want the admin to update the data during maintenance.
    – Hyonta
    Dec 3, 2020 at 0:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.