Comment masquer les options de menu pour les utilisateurs à la page Paramètres du site?
-
16-10-2019 - |
Question
Quelle est la meilleure façon d'options de menu cacher / liens sur les paramètres du site la page?
En particulier, je veux cacher les paramètres SharePoint Designer des utilisateurs finaux afin qu'ils ne voient pas cette option.
Il y a d'autres je voudrais cacher aussi.
Idées?
La solution
In a Site Collection scope FEATURE, include following:
<HideCustomAction
GroupId = "SiteCollectionAdmin"
HideActionId = "SharePointDesignerSettings"
Id = "HideSharePointDesignerSettings"
Location = "Microsoft.SharePoint.SiteSettings">
</HideCustomAction>
Beware of Documentation located at: http://msdn.microsoft.com/en-us/library/bb802730.aspx Some of the IDs are wrong and NOT all are documented there. For example the one that you are looking is not included in MSDN. About wrong values see: http://sp10tech.blogspot.com/2010/11/wrong-values-for-location-and-groupid.html
I found above setting from: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\SiteSettings\SiteSettings.xml file.
Autres conseils
Build a custom action that would be a HideCustomAction and that would hide any element you want. The list of elements that you can use/hide are presented here.