站点设置页面上的SharePoint自定义操作

Mic*_*rds 6 sharepoint custom-action sharepoint-2007

我在SharePoint网站的"网站设置"页面上有一个自定义操作,该页面显示在UsersAndPermissions列表中.它是使用功能创建的,这是该功能的elements.xml文件:

<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>
Run Code Online (Sandbox Code Playgroud)

目前,网站的所有用户都可以在"网站设置"页面上看到此链接.我希望能够限制谁可以看到此链接.这可能吗?怎么做到呢?

小智 6

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

查找名为"Rights"和"RequireSiteAdminstrator"等元素.

以下是可能的"权利"列表:

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