How can I hide the space administrators list on the space details screen from anonymous users in Confluence 5.x?

Confluence 5.x displays the a list of the space administrators on the Overview tab in the Space Details section. I'd like to hide the list from anonymous users but let it display for logged in users. If this is not possible, can I hide the display for all users?

2 answers

1 accepted

1 vote
Answer accepted

Adding to what Ryan have already said.

To hide this field from users who are not logged in you could do the following:

<script>
AJS.toInit(function(){
    if(!AJS.params.remoteUser) { 
        $('#spaceCreator').parent('.field-group').hide() 
    }
});
</script>

Add this to the Custom HTML field of the admin panel and anon users can no longer see the creator.

Thanks for the information. You and Ryan (above) have pointed me in the right direction.

Hi Dawn,

As for configuring to show this for logged in users vs non-logged in users, you would need to do some deeper customization.

For a quicker solution, I would recommend adding a style sheet rule that hides the element you want to hide. You can put this rule in the Global stylesheet so that all spaces inherit and respect this rule.

https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS

I've included a screen shot of a working example of this value being hidden.

hidden space administrators

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

1,612 views 4 13
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