Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide People tab in Confluence

Bob Scott
Contributor
April 10, 2014

I need to hide People tab form the Confluence bar

4 answers

1 accepted

3 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
April 10, 2014

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

Fabio Racobaldo _Herzum_
Community Champion
April 10, 2014

yes, they can.

Regards,

Fabio

Bob Scott
Contributor
April 10, 2014

Thanks for your quick reply!

Using this javascript, can users still use mention capability?

Bob Scott
Contributor
April 10, 2014

it works perfectly.

Thanks so much!

7 votes
Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2014

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');
});

1 vote
Roman Holzner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2014

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>
Tomaszp
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2015

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

Roman Holzner (adabay GmbH)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 8, 2015

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)

0 votes
Bob Scott
Contributor
April 11, 2014

Thanks Felix

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events