confluence 5 - hide 'space tools' from anonymous user -how

What's the best way to hide the space tools for anonymous users ?

2 answers

1 accepted

4 votes
Answer accepted
David Simpson Community Champion Jul 20, 2013

You can do it with client side Javascript, if that's good enough.

In Confluence Admin | Look & Feel | Custom HTML add in At the end of the HEAD:

  AJS.toInit(function () {
    if (AJS.params.remoteUser == '') {


I tried this in Confluence 5.4.2. But the Space Tools menu still displays for Anonymous users. Is there an adjustment I can do to the script to make it work?

Steven Behnke Community Champion Sep 03, 2014

Hi @R Donato,

You should ask new questions and reference old ones with links in the future!

To do this via clientside javascript, I modifed David's slightly and this worked for me on Confluence 5.4.4

    if (AJS.params.remoteUser == ''){

This didn't work in 5.4.2. The Tools menu and all its options still display.

Did anyone know how to remove the space tool for the cloud (on-demand) version?

What about removing the space tools for another group of users, like a new group created on the admin configuration side?

I made this work by using single quote ' rather than double quote "

<script type="text/javascript">
if (AJS.params.remoteUser == ''){

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

259 views 2 10
Read article

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