How To Hide Site Setting Links in SharePoint 2013   Leave a comment

There may be specific instances where you want to have more control over your Site Owners.  Once such instance is controlling what Site Setting Configurations they have access to.  This post does not address security or permissions, but instead shows you how to remove (Hide) certain links from the Site Settings page in SharePoint 2013.

A typical scenario may be when you have some custom Branding, Navigation or Search Configuration and want to remove those links from being shown.

Note: This does not remove access to the page.  Simply type in the URL directly to access the specific page settings.  My thought on this was the “Out of Site, Out of Mind” approach.

What I did.

I created a SharePoint Feature with a Custom Action to remove specific Links from the Site Settings Application Page. You can obtain the links by holding your mouse over the link and capturing the URL from the Browser Status Window.

How to Do it.

1. Create an empty Visual Studio 2013 SharePoint project.

2. Create a Feature and Scope it to “Site”

3. Add a Custom Action with the following Elements.xml file.  I have tried to explain as much as possible to help you along. (I’ve commented out some of the links, you can incorporate them as well by removing the command tags.)

Elements.xml

<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”&gt;

<!– *******************************************************************–>
< !– *  Trim Site Settings Custom Action Elements File contains the Actions
< !– *  to Remove the Navigation Links.  To locationt the proper “Group Id”
<!– *and “HideActionId” use the IE  Developer Toolbar to obtain the ID label.
< !– *  Example:
< !–* id=”ct100_PlaceHolderMain_Customization_RptControls_DesignEditor”
<!– *  Where GroupId = “Customization” and HideActionId = “DesignEditor”
<!– *******************************************************************–>

<!– *******************************************************************–>
< !– *                             Site Settings Look and Feel                                                 *–>
< !– *******************************************************************–>

<!– Removes the ‘Design Manager’ Navigation Link from Site Settings Page under Look and Feel –>
< HideCustomAction
Id = “HideImportDesignPackage”
GroupId = “Customization”
HideActionId = “DesignEditor”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– Removes the ‘Master Page’ Navigation Link from Site Settings Page under Look and Feel –>
< HideCustomAction
Id=”HideSiteActionFeatures”
GroupId=”Customization”
HideActionId=”AreaChromeSettings”
Location=”Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– Removes the ‘Site Title, Description and Icon’ Navigation Link from Site Settings Page under Look and Feel –>
< !–
<HideCustomAction
Id = “HideProjectSettings”
GroupId = “Customization”
HideActionId = “ProjectSettings”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
–>
< !– Removes the ‘Device Channels’ Navigation Link from Site Settings Page under Look and Feel –>

<HideCustomAction
Id = “HideDeviceChannels”
GroupId = “Customization”
HideActionId = “DeviceChannelSettings”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
< !– Removes the ‘Change the Look’ Navigation Link from Site Settings Page under Look and Feel –>
< HideCustomAction
Id = “HideChangeTheLook”
GroupId = “Customization”
HideActionId = “Theme”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– Removes the ‘Import Design Package’ Navigation Link from Site Settings Page under Look and Feel –>
< HideCustomAction
Id = “HideImportDesignPackage”
GroupId = “Customization”
HideActionId = “DesignImport”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– *******************************************************************–>
< !– *                                   Web Design Galleries                                                      *–>
< !– ********************************************************************–>

<!– Removes the ‘Themes’ Navigation Link from Site Settings Page under Web Design Galleries –>
< HideCustomAction
Id = “HideThemes”
GroupId = “Galleries”
HideActionId = “Themes”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– Removes the ‘Solutions’ Navigation Link from Site Settings Page under Web Design Galleries –>
< HideCustomAction
Id = “HideThemes”
GroupId = “Galleries”
HideActionId = “Solutions”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– Removes the ‘Composed Looks’ Navigation Link from Site Settings Page under Web Design Galleries –>
< HideCustomAction
Id = “HideComposedLooks”
GroupId = “Galleries”
HideActionId = “Designs”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– *******************************************************************–>
< !– *                                       Site Actions                                                                    *–>
< !– *******************************************************************–>

<!– Removes the ‘Manage Site Features’ Navigation Link from Site Settings Page under Site Actions –>
< !–
<HideCustomAction
Id =”HideManageSiteFeatures”
GroupId = “SiteAdministration”
HideActionId =”ManageSiteFeatures”
Location =”Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
–>

<!– Removes the ‘Delete this Site’ Navigation Link from Site Settings Page under Site Actions –>
< HideCustomAction
Id=”HideDeleteThisSite”
GroupId=”SiteTasks”
HideActionId=”DeleteWeb”
Location=”Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

<!– *******************************************************************–>
< !– *                                     Site Administration                                                       *–>
< !– *******************************************************************–>

<!– Removes the ‘Variation Settings’ Navigation Link from Site Settings Page under Site Administration –>
< !–
<HideCustomAction
Id=”HideSiteVariationSettings”
GroupId=”SiteAdministration”
HideActionId=”VariationsNominateSiteLink”
Location=”Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
–>

<!– *******************************************************************–>
< !– *                                    Reporting Services                                                         *–>
< !– *******************************************************************–>

<!– Removes the ‘Reporting Services Site Settings’ Navigation Link from Site Settings Page under Reporting Services –>
< !–
<HideCustomAction
Id=”HideReportingServicesSiteSettings”
GroupId=”ReportServerSettingsLinks”
HideActionId=”ReportServerSiteLevelSettings”
Location=”Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
–>

<!– *******************************************************************–>
< !– *                                          Search                                                                         *–>
< !– *******************************************************************–>

<!– Removes the ‘Search Settings’ Navigation Link from Site Settings Page under Search –>
< !–
<HideCustomAction
Id=”HideSearchSettings”
GroupId=”SearchAdministration”
HideActionId=”SiteSearchSettings”
Location=”Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
–>

<!– *******************************************************************–>
< !– *                               Site Collection Administration                                        *–>
< !– *******************************************************************–>

<!– Removes the ‘Site Collection Features’ Navigation Link from Site Settings Page under Site Collection Administration –>
< !–
<HideCustomAction
Id = “HideSiteCollectionFeatures”
GroupId = “SiteCollectionAdmin”
HideActionId = “ManageSiteCollectionFeatures”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
–>

<!– Removes the ‘Variations Settings’ Navigation Link from Site Settings Page under Site Collection Administration –>
< !–
<HideCustomAction
Id = “HideSiteCollectionFeatures”
GroupId = “SiteCollectionAdmin”
HideActionId = “VariationSettings”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>
–>

<!– Removes the ‘SharePoint Designer Settings’ Navigation Link from Site Settings Page under Site Collection Administration –>
< HideCustomAction
Id = “HideSharePointDesignerSettings”
GroupId = “SiteCollectionAdmin”
HideActionId = “SharePointDesignerSettings”
Location = “Microsoft.SharePoint.SiteSettings”>
< /HideCustomAction>

</Elements>

I will try to post a project solution on CodePlex soon.  So look out for it.

Happy SharePointing!

Bismarck

Posted December 11, 2014 by Bismarck in SharePoint 2013

Tagged with

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: