I use ModernUI in SharePoint Online.
Is it possible to temporarily disable the system for release work, site updates, etc., except for operational administrators?
I also want to prevent users who have registered their browser's favorite sites from directly accessing the URL.
It would be great if I can display message like "Site is under maintenance".

Appreciate any ideas\Pointers. Thanks,

1 Answer 1


To answer your questions:

  1. It is not possible to disable the system for getting release from ‎Office 365‎, it is only supported to control what release we may receive. You will have to contact Microsoft for further control on your behalf.

  2. You can set a site to Read Only using PowerShell:

    Set-SPOSite -Identity <siteURL> -LockState ReadOnly

    It will display a message on top of the site that it is under maintenance and read-only, but it will disable the activities on all users who have access, including Administrators. Also it doesn’t apply to the root site collection.

    As a workaround, I would suggest you restrict user access by adjusting user permissions directly.

  3. We cannot prevent users from accessing a site via the URL (or following the site) as long as they have access to it. See a related post here: How can you prevent users following your site?

  • Thank you for your answer. I understand very well. I have one question. If I set the site to ReadOnly with powershell, is it possible to update data with PowerAutomate without directly accessing SharePoint?
    – Hyonta
    Sep 30, 2020 at 7:36
  • @Hyonta I’ve just ran a quick test using flow, and it returned an “Access is denied” error. So the answer is no, flow would not be possible either. Sep 30, 2020 at 7:58
  • Thank you for investigating.It helps me. Thanks a lot.
    – Hyonta
    Sep 30, 2020 at 10:36
  • What do you think about the lockdown mode described on this site? Does this meet my requirements? sharepointdiary.com/2018/06/…
    – Hyonta
    Oct 5, 2020 at 9:36
  • @Hyonta I'm afraid not. The Limited-access user permission lockdown mode Feature is used to assign "Limited access" permission in a site. It will restrict but not disable user access under several circumstances. That would be a different topic. Oct 5, 2020 at 23:40

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.