Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • ssougnez 85 posts 289 karma points c-trib
    Dec 16, 2018 @ 21:05

    Set Umbraco as readonly for deployment

    Is it possible to set Umbraco as readonly to ensure that no content editor is able to push changes in the database.

    My idea is to lock Umbraco while doing update using deployment slot on azure.

  • Dan Diplo 1463 posts 5630 karma points MVP 3x c-trib
    Dec 17, 2018 @ 12:55
    Dan Diplo

    If you've only a few content editors then you can just temporarily disable their accounts via the Users section. This would prevent anyone logging in and thus changing content.

    If you wanted to disable all accounts you could do it via the database and run the following SQL:

    UPDATE umbracoUser SET userDisabled = 1 WHERE id > 0

    That should disable all accounts (apart from main Admin account).

    Disclaimer: I've not tried this :)

    If SQL works you could write a dashboard to enable / disable all more quickly.

  • Nik 1134 posts 4700 karma points MVP 2x c-trib
    Dec 17, 2018 @ 13:54

    Alternatively there is this script you can create that doesn't write to the database but disabled backoffice access

    I've not tested it, but it might be easier than needing DB access.


  • ssougnez 85 posts 289 karma points c-trib
    Dec 17, 2018 @ 15:55

    That's good ideas. I'll try them, thanks.

Please Sign in or register to post replies

Write your reply to: