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
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
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

88 views 0 6
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