Hiding Link In SharePoint Quicklaunch Based On Permissions

3.3k Views Asked by At

I am trying to figure out a way to hide a specific link from the Quicklaunch navigation bar on one of my sites in SharePoint 2013 and am having some trouble. Basically I am trying to make it so that a link is only visible to users within a specific group and any other users that are not part of this group will not see the Quicklaunch link. I have been reading up on how to implement this via css and javascript within the default master page but do not seem to be having any luck. I was using SPServices to get the group membership for the currently logged in user and based on there membership either hiding or showing the specific Quicklaunch item. I implemented this code into the master page and I though I had it working, however upon navigating to a different page, list, or library within the site the given link reappears. I do not know if I am doing something wrong but as a last resort I have come here for answers. If anyone could point me in the right direction I would greatly appreciate it.

Bellow is a screenshot to get a better understanding of what it is I am trying to do...

What I am trying to accomplish

1

There are 1 best solutions below

0
On

Security trimming should be automatic for the quick launch. Users not being able to see the list, should not see the quicklaunch entry. One thing i experienced in the past is that the security trimming does not work if your quick launch URL looks like this

https://url/sites/sc/Lists/internallistname

but will work if you include the aspx-page

https://url/sites/sc/Lists/internallistname/AllItems.aspx

Don't know about foundation but it's worth a try...