Is it possible to control what an anonymous user sees in the browse menu?

Ideally, I'd like to be able to hide the entire browse menu from anonymous users, but if that's not possible, can I control what's shown on the browse menu to anonymous users?

6 answers

1 accepted

3 votes
David Simpson Community Champion Aug 01, 2011

Browse to:

Confluence Admin | Look and Feel | Custom HTML 

In At end of the HEAD, add some javascript similar to this:

if (AJS.$('#login-link').length > 0) {

Thank you so much David!

This is the script I ended up using and I had to put it at the end of the body section.


if (AJS.$('#login-link').is(":visible"))











David Simpson Community Champion Aug 07, 2011

Cool. That will likely do the trick :)

There is also the excellent Menu Manager Plugin from CustomWare that does the trick brilliantly.

But remember, once you have hidden the commands, the user can still access many of the Confluence features by the URL as definined in this great post but most of these do require the confluence pageid.

I was able to combine the two above answers and make it work in Confluence 4.2.

I put this script at the End of Body

if (AJS.$('#login-link').is(":visible")) {

None of the above will work for OnDemand. Any other ideas?

My worry is, if you run these scripts, you will lose the edit menu too and be locked out. Any plan for that scenario?

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 ...

864 views 23 12
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