1

This article mentions how we can modify the masterpage html file in SP2013.

However, we are deploying a '.master' file and setting the masterpage via VS package. What is the way that we can perform security trimming on a master page to hide ribbon based on user permission? (we can open the VS project and make changes to this '.master' file)

I have found article that does this on SP2010, however is it good practice to use it on SP2013? How can we hide the ribbon from users with 'read only' permission?

1 Answer 1

3

If you have to show/hide parts of the Ribbon based on permissions then SPSecurityTrimmedControl is the ideal way to do it even if you are on SP 2013. You can use ViewListItems permissions to hide the Ribbon from users with Read Only permissions. See this http://msdn.microsoft.com/EN-US/library/ms412690 for all possible types of Permissions which can be used.

5
  • This control is present also in 2010 :) Apr 1, 2014 at 5:18
  • Yes and OP wants to know if it still good practice to use it on 2013. Apr 1, 2014 at 5:23
  • If I use 'ViewListItems', then the ribbon will only be visible to users with 'ViewListItems' permission. (am I correct?) I want that the user with read only permission should not be able to see the ribbon.
    – variable
    Apr 1, 2014 at 5:27
  • Yes you are correct. Do you mean anonymous users by readonly users? Apr 1, 2014 at 5:48
  • Example: 'User A' has permission to only 'read' list items. Then, for that user, the ribbon should be hidden.
    – variable
    Apr 1, 2014 at 5:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.