How to hide People tab in Confluence

I need to hide People tab form the Confluence bar

4 answers

1 accepted

3 votes

Hi Bob,

There's a specific permission based for user.

if you need just to hide this tab you can use a javascript.

Go to Confluence Admin -> Custom HTML and add the following script :

<script>
jQuery().ready(function() {
  jQuery("#people-directory-link").hide();
});
</script>

Regards,

Fabio

yes, they can.

Regards,

Fabio

Thanks for your quick reply!

Using this javascript, can users still use mention capability?

it works perfectly.

Thanks so much!

I would prefer CSS and Confluence Admin > Global Stylesheet for this purpose in order to avoid bloating my installation with JavaScript code that is executed on DomReady:

#people-directory-link { display: none; }

Also note that jQuery.hide does an asynchronous animation in the background. If you want to stick to your JS solution, I would definitely prefer:

AJS.toInit(function($) {
  $('#people-directory-link').addClass('hidden');
});

To prevent people to call the url:

 

<script>
AJS.toInit(function($) {
  $('#people-directory-link').addClass('hidden');
});
if (document.URL.indexOf("browsepeople.action") > -1) window.location.href="/";
</script>

Roman, Please confirm where to apply your custom script to disable "people area". is it "head section" in Custom HTML? or somehwer else? Thanks in advance Tomek

Hey Tomasz, not that this is only preventing to access the page in the Browser. You still can access the people tab by e.g. turning Javascript off or using cURL. But exactly, simply add this in Custom HTML in the head section. Greets from Munich, Roman (adabay GmbH)

Thanks Felix

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

587 views 20 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you