How to restrict a panel to some users

Richard Coffre April 30, 2018

Hi all,

I need to create pages in Confluence.

But in these pages, I need to collect some confidential information, only accessible for some users.

I gather all this information in a panel.

Therefore this panel must have a restricted access.

Is it possible to do this?

Best regards,

Richard

3 answers

1 accepted

0 votes
Answer accepted
Jonathan Smith
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 30, 2018

Hi @Richard Coffre,

  Out of the box, Confluence restricts down to the page level.

One thing you can try:

  1. Create the panel in a child page under the parent page
  2. Lock down the child (panel) page with proper restrictions
  3. Surround the panel with the {excerpt macro
  4. Put the {excerpt include macro on your parent page, then point to the child page
  5. The panel should be invisible to users who don't have access to the child page
  6. Test this before putting in sensitive data

*This suggestion might not be the best solution if you have to go into sub pages to capture additional data.

Richard Coffre May 2, 2018

This solution is quite perfect.

But it seems there is an issue with Admin privileges which can override all the restrictions.

Jonathan Smith
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2018

If some of the admins on your space are the target audience... they would see content (or at least be able to expose it) regardless of what you do. It would be interesting to see if the Visibility add-on noted above would trump the admin privileges on a space.

Another option: Store the secure pages in another space, then use the {include page macro to pull those onto the desired parent page. Think of it as an iframe.

2 votes
Manon Soubies-Camy _Modus Create_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 30, 2018

Hello Richard,

It is possible using the free app Visibility: it embeds show-if and hide-if macros that will let you hide content from users, groups, users based on permission, etc.

But note that:

  • Users will still be able to see the whole page by clicking on ... > View source, so the hidden part is not that hidden.
  • Content in show-if and hide-if macros is indexed so users can find it when doing a search.

I've just found a great article from @Thomas Schlegel on hiding content: The Admin's tale - Hidden Treasures, it may help you further.

Hope this helps,

- Manon

0 votes
Jonathan Smith
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 30, 2018

Scratching the page properties = hidden suggestion, view source using the Confluence page displays Waldo :(

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events