Granular permissions for individual items
Consider the following use case:
You want to create a custom role, which enables users to:
- View all blogs and their blog posts
- Edit and delete a particular blog
- Create, edit and delete blog posts of only this particular blog
Users in this role are not able to:
- Create any blogs
- Edit or delete any blogs, except a particular one
- Create, edit or delete any blog post in blogs other than this particular blog.
To accomplish this, perform the following:
- Create a custom role
Create a dedicated role whose users will be able to edit only one blog and its posts.
Perform the following:- In the Sitefinity CMS backend, Administration» Roles» Create a role.
- In the input files, enter
BlogEditorsand click Create.
Go back to the Dashboard.
- Setup the global permissions for blogs. Perform the following:
- In the Sitefinity CMS backend, click Administration» Permissions» by Section » Blogs.
- Under sections Create a blog, Delete blog and posts, and Modify blog and manage posts, perform the following:
- Click Change.
- Select the Explicitly deny this to selected roles and users: checkbox and click Add roles or users.
- Select role BlogEditorsand click Done selecting » Done.
Go back to the Dashboard.
- Setup individual blog permissions. Perform the following:
- Click Content» Blogs.
- Expand the Actionslink of the blog for which you want the BlogEditors role to have permission to modify and manage its blog posts.
- In the dropdown box, select Permissions.
- Click Break inheritance.
- Under sections Delete this blog and its posts and Update this blog and manage its blog posts, perform the following:
- Click Change.
- Under Advanced, remove BlogEditorsrole and deselect Explicitly deny this to selected roles and users: checkbox.
- Select Selected roles or users radio button and click Add roles or users.
- Select the BlogEditorsrole and click Done selecting » Done.
RESULT: All users assigned in role BlogEditorscan edit and delete only one particular blog. They can also create, edit, and delete blog posts in this blog. For all other blogs they have only view permissions.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.