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?


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.

  • This control is present also in 2010 :) – Robert Lindgren Apr 1 '14 at 5:18
  • Yes and OP wants to know if it still good practice to use it on 2013. – Nadeem Yousuf Apr 1 '14 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 '14 at 5:27
  • Yes you are correct. Do you mean anonymous users by readonly users? – Nadeem Yousuf Apr 1 '14 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 '14 at 5:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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