How to disable database switching in Sitecore

Heythere! Welcome to "Sitecore Series"

Post is all about sharing the details about database switching in Sitecore and how to disable the database switching for few users or roles.

In Sitecore when we login, the default database is set to the master and at the right-bottom corner we have an option to switch to specific data bases like Core database or to Web database.

In specific scenarios, we may want to disable the database switching for various security reasons and to provide right access to the right user.

Giving extra access for an content author is not recommended, as there may be chances of performing unintended actions by accessing the databases and it's content.

So one of the option to provide right access to some content authors is disabling database switch option in Sitecore.


In Sitecore, the editor and all the options we are seeing in master database are configured in Core database. Database switch option is also one of them.

For disabling database switch option to particular user/role, first switch to core database.

Disable Database Switching for specific user:

1) Click on desktop icon in core db.

2) Click on "Security Tools" -> Select "User Manager"

3) Select the user to disable the database switch option ->Click on "Security Editor" from the top menu

4) Navigate to Sitecore -> Content -> Applications -> Desktop -> Tray 

5) Click on Tray and deny the "Read" access for that user.


Disable Database Switching for specific Role:

1) Click on desktop icon in core db.

2) Click on "Security Tools" -> Select "Role Manger"

3) Click on the Role -> Click on security editor from the top menu.

4) Navigate to Sitecore -> Content -> Applications -> Desktop -> Tray  to disable database switching option for this role.

5) Click on Tray and deny the "Read" access for that user.

image


Note: While denying the read access, make sure to check whether the selected role/user is highlighted in the top section.

If any other role/user is highlighted there, that means the changes you are performing are applied to the highlighted role/user.

image


Hope this post helps you. Happy Sitecoring..😊

Comments

Popular posts from this blog

Overwriting sxa content field in solr document

Displaying Custom 404 error page for urls with unallowed file extension in sitecore

How to specify custom richtext menu as default richtext field setting when no source is specified for richtext field in sitecore

How to rebuild custom solr index programmatically in Sitecore

Handling URL requests with different file extensions in Sitecore

Rendering Parameters and Rendering Parameter Templates in Sitecore

Accessing Items from Sitecore Database in different scenarios