Preventing Sitecore from applying security

Sometimes, content authors need to perform some necessary operations for which they do not have access rights. Giving additional rights to them is not a permanent solution as requirements can vary from user to user or case to case. Sitecore gives freedom to developers by providing a security context switching feature so that users can perform some secured item or field-level changes in the security context of other users.

Let's consider a case where some super content author needs a facility to unlock pages locked by other content authors. So, instead of giving them rights to unlock the pages, we can do this impersonating the user and disabling security.

Getting ready

Create two different buttons in the ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.