Hide the Ribbon from Anonymous Users

Author: Luis Kerr

Related Links

Popular SharePoint Books

14 Responses

  1. vishnu says:

    This is very useful for me.
    Thank you

  2. Steve says:

    this works but it also hides the scroll bar on the pages.

  3. Steve, just add a Sign in link and point it to (/_layouts/Authenticate.aspx?Source=/Pages/default.aspx) so you can login. Once you’re logged in you will see the ribbon again.

  4. If you just want to hide all tab from Ribbon, your are not obliged to use SPSecurityTrimmedControl. You can define direclty the properties PermissionsString, PermissionsMode,… on the SP:Ribbon markup in the master page. It will only show/hide the tabs.

  5. snail says:


    I do have an issue when applying this, the scrollbar disappear and can’t even scroll the page if the content is long. Is there anything to do with the CSS or…?? How?

  6. Janta says:

    Thanks dude, just looking for this weeks ago 🙂

  7. Chris says:

    For those looking for a solution to the scrolling issue I posted this here.


  8. Alexey says:

    You can see another solution how to hide it and decide if it fits your needs here: http://alexsharepoint.blogspot.com/2011/06/hiding-ribbon-for-anonymous-users.html

  9. Peter says:

    I have a page with a bunch of links which each point to a different library. All users can view this page. Can I use this control to hide a link on the page if the user does not have permission to view the library the link points to?

  10. GGYY says:

    How to allow only a specific user have the right (e.g only allow USER_ABC to access the Site Action sub-menu)


  11. vinod says:

    i am looking for similar but not to remove for anonymous also i want to hide/show the ribbon control with a button option like the footer floated control like in Cnet.com

  12. Tracey Nolte says:

    to fix the scrolling issue in this, simply go to the masterpage and comment out the */ overflow:hidden; */ in the CSS area at the top and it solves the problem.

  13. LK says:

    None of the suggestions above actually hide the ribbon for anonymous users only!

    This trim will do the trick

  14. Iain says:

    I wrote a blog post on how to hide the ribbon, keep the scrollbars AND not lose the title area here:

Leave a Reply to vinod Cancel reply

Your email address will not be published. Required fields are marked *