How to hide elements from anonymous users in SharePoint 2013

Sometimes we need to hide some elements of the page from anonymous users.

To acheive that you just need to insert this:

<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AuthenticatedUsersOnly" EmitDiv="true">
   HTML to hide from anonymous users
Have more questions? Submit a request


Got a question?

If you can't find the answer to your question, you can contact us.
We are here and happy to help.

Powered by Zendesk