Wednesday, June 17, 2009

Hide Sharepoint Site Action for non authentic user group

Sharepoint Site Action hiding is easy for non authenticate user. It is possible using sharepoint designer and after that only administrator's view Site Action button in sharepoint web application.

Open Sharepoint Designer and find SiteAction control in master page. Add
SPSecurityTrimmedControl before that.


<SharePoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManageWeb" >


<SharePoint:SiteActions runat="server" AccessKey="<%$Resources:wss,tb_SiteActions_AK%>" id="SiteActionsMenuMain" ..........>
............
</SharePoint:SiteActions>

</SharePoint:SPSecurityTrimmedControl>