SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a link and put it in the site action container. The link should only be visible to members in the HR groups. Here is the declaration in my Elements.xml file

 <Elements xmlns="">
  <CustomAction Rights="ManageWeb" Id="UM" Description="View and manage user profile"   
    Title="User Management" GroupId="SiteActions"  
    Location="Microsoft.SharePoint.StandardMenu" Sequence="10">
    <UrlAction Url="~site/_layouts/UM/Overview.aspx"  />

  <HideCustomAction HideActionId="UM" GroupId="SiteActions"  
    Location="Microsoft.SharePoint.StandardMenu" Id="hideUM"  > 

My problems is how do I connect this two, between the link and the group. Any help is very much appreciated. Thanks in advance.

share|improve this question
up vote 2 down vote accepted

The intention of HideCustomAction is to permanently hide the custom action, not to hide it conditionally, so you cannot link those two out of the box. The custom action can hide itself based on two attributes of CustomAction element: Rights and RequireSiteAdministrator as documented here:

OUt of the box, you can hide it based on permissions of the user, not based on user's group membership.

share|improve this answer
Thank you very much for the answer. – user2606 Mar 23 '11 at 2:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.