How to hide content to certain users? Edited

I want to hide some content from certain users, for example unauthenticated users.

I've been using the "include" plugin, placing the hidden content in a separate space with different permissions, but recently (I think?) it started showing an error if the users couldn't access the hidden space contents.

I wanted to hide that error with a custom CSS... but recently the support for custom CSS has been completely deprecated.

I've found some other solutions but they put the hidden content inside the page "code" as "comments" that you can see only by editing the page. I don't like this solution since you have to give write permissions to the users in order to be able to see the contents (or anyway, you need to edit the page to see it).

Is there some other way to do this?

edit: I'm refering to Confluence Cloud.

1 answer

1 vote
Thomas Schlegel Community Champion Oct 05, 2017

Hi Simone,

I've written an article about hiding content on a Confluence page:

https://community.atlassian.com/t5/Confluence-articles/The-Admin-s-tale-Hidden-Treasures/ba-p/595803

I think, the visibility plugin is the one, you are looking for.

Thanks for the link. Interesting read, but it seems the only option with Confluence Cloud is adding a div with "display: none" and accept that the content is there anyway.

I was hoping in something slightly more secure. The "Include" plugin has been working fine, if it wasn't for the error it shows.

The visibility plugin isn't available for Cloud.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,085 views 17 14
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