I want to show/hide the search box based on the current logged in user.
I have one permission group for e.g., xyz. this group has contribute permission to only document library(not even to the web). I have a requirement such that if user from group xyz loggs in to the system then the search box should not appear to that user. Users from other than this group should see the search box.
I came to know about the
<SharePoint:SPSecurityTrimmedControl> by this link. And in the master page, I placed the divs inside
<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> to this control. But the search box got hide forever for all users.
The master page contains following code:
What am I missing?