Forums

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

Hide Space Tools/Hamburger menu from Specific users

yadeniji August 23, 2018

Can this script that is used to hide the Space Tools from anonymous user also be used to hide the The Space Tools from specific users and/or groups?  I want to hide the Space Tools/hamburger menu from specific users who only need to view the content on the page.  They can share, edit, nothing.

Here is the original script from the KBs

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

 

Thanks.

1 answer

0 votes
Fabienne Gerhard
Community Champion
August 24, 2018

Have a look on global, space and site permissions as mentioned here in documentation.  If you have a defined group it's easier to manage it with permissions I think.

If you don't have the permission to edit something you won't see the tools. 

Hope this helps

yadeniji August 27, 2018

Thanks for the reply.  I di try this before, but whatever user I test it on they still have access to the sidebar and Hamburger menu.  Giving the user account "View" only access isn't enough to hide the sidebar unless I'm doing something wrong.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events