Copied to clipboard

Flag this post as spam?

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


  • ssougnez 93 posts 319 karma points c-trib
    Dec 16, 2018 @ 21:05
    ssougnez
    0

    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 1554 posts 6205 karma points MVP 6x c-trib
    Dec 17, 2018 @ 12:55
    Dan Diplo
    100

    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 1614 posts 7260 karma points MVP 7x c-trib
    Dec 17, 2018 @ 13:54
    Nik
    0

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

    https://shazwazza.com/post/easily-lock-out-umbraco-back-office-users/

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

    Nik

  • ssougnez 93 posts 319 karma points c-trib
    Dec 17, 2018 @ 15:55
    ssougnez
    0

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

Please Sign in or register to post replies

Write your reply to:

Draft