Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint Custom Action on Site Settings Page

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?

like image 328
Michael Edwards Avatar asked Oct 20 '09 08:10

Michael Edwards


1 Answers

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

like image 72
jgj Avatar answered Sep 22 '22 13:09

jgj