Security Trim Hub Menu
Security trim the hub site's top menu bar
We’re working on audience targeting in hub navigation. Hub owners will be able to set who should view certain links and those links are filtered out.
Trimming based on a users access to the site or resource is not in the plans.
Kev Maitland commented
>Trimming based on a users access to the site or resource is not in the plans.
Why not? Too useful? Too difficult?
Audience targeting is better than nothing, but it's not automatic security trimming. Is it possible to make the hub top navigation menu items to disappear automatically based on who is logging in, just like the search results?
Needed. Why show menu items to things people shouldn't access. And then there are issues, like our external sites can't be part of a hub because it would expose external people to a list of other vendors.
We do our security at the library level, so we have sites people get links to that are basically blank.
Voted. Security Trimming coupled with automatic links to associated sites with a generic header. We can then structure the new links as and when the need arises.
Clearly there are a number of users on here who have already commented and up-voted this feature and i'm adding my support. You recently made content on the pages easier to manage with Audiences, but like everyone else i'm still left with navigation menu items that are visible to all (unless i go to the effort of using unique permissions on every aspect of the site (pages, libraries etc) which is too much of an admin overhead.
Couldn't you extend the target audience option to facilitate this?
In Teams, users only see the teams and private channels that they are a member of. I need the same functionality in SharePoint hubs so I no longer get access requests from people who should not have access to associated sites.
Angela Bennett commented
With Hub navigation Users see all menu items even if they do not have access to the site/library/list etc.
If they click on it they get an option to request access to a site etc (whether it is an associated site or not) in the menu option.
The menu option should not be displayed for them in the hub navigation
Brian G Riesen commented
Everything else is security trimmed in O365 except hub site navigation. Seems odd and something that needs to be added.
Ashish Gupta commented
When will this be implemented?
Bart van Leeuwen commented
Help i need this option asap!
Pierre LEURENT commented
This feature is crucial, otherwise Hub navigation is not really usable at a large scale.
Derek D'Amore commented
For those of you looking for a SPFx solution, see the following: https://github.com/bcameron1231/SharePoint-Framework/tree/master/react-hubsite-securitytrim-navbar
I concur that hub menu could be developed further to allow target audience or security trimming.
I agree this feature is much needed
Pauline Dahne commented
This is needed urgently for the rollout of our Modern Intranet using Hub Sites
Aroh Shukla commented
It's really troublesome for customers who are embracing Hub sites
Nick Pettijohn commented
Security trimming on Communication sites, whether a Hub site or not, does not even work for restricted site pages on the same site. This is true both for the upper Hub navigation, and the lower local nav. This is VERY inconvenient.
Devang MISTRY commented
This is a much needed feature!
Sam Haugh commented
It would be amazing if this worked how Nick Brattoli and Andy Z suggest!
Frustrated admin commented
Very frustrating...hub sites no more