How to hide the Space Tools menu for Anonymous Users in Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community


This Knowledge Base article was written specifically for the Atlassian Server platform. Due to the Restricted functions in Atlassian Cloud apps, the contents of this article cannot be applied to Atlassian Cloud applications.

Purpose

The Space Tools menu allows Space Administrator to manage their Spaces. If you need to disable the Space Tools menu for all anonymous users, you may do so by using JavaScript.

Solution

  1. Navigate to Confluence Administration page >> Custom HTML.
  2. Click Edit.
  3. Add the following to At the end of the HEAD section and click Save:

    <script>
      AJS.toInit(function(){
        if (AJS.params.remoteUser == ''){
          AJS.$("#space-tools-menu-trigger").hide();
        }
      });
    </script>


Last modified on Apr 19, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.