SharePoint Custom Action on Site Settings Page

Michael Edwards picture Michael Edwards · Oct 20, 2009 · Viewed 8.9k times · Source

I have a Custom Action on the Site Settings page of my SharePoint site that appears in the UsersAndPermissions list. It is created using a feature, this is the elements.xml file for the feature:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="SDITeamGroupApplicationPage"
    GroupId="UsersAndPermissions"
    Location="Microsoft.SharePoint.SiteSettings"
    Sequence="1000"
    Title="Create a Team Group">
    <UrlAction Url="_layouts/SDITeamGroupEdit.aspx"/>
  </CustomAction>
</Elements>

Currently all the users of site can see this link on the Site Settings page. I want to be able to restrict who can see this link. Is this possible? How can it be done?

Answer

jgj picture jgj · Oct 20, 2009

http://msdn.microsoft.com/en-us/library/ms460194.aspx

Look for the elements called "Rights" and or "RequireSiteAdminstrator" etc.

Here are the list of possible "Rights":

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx