How can I display specific content on a page for only some users/groups?

How can I display specific content on a page for only some users/groups to see, but not all? Ideally, I'd like to show some information about a topic on any given page to all users/groups, but make more information available to specific users/groups.

2 answers

1 accepted

2 votes
Thomas Schlegel Community Champion Mar 17, 2017

I got another plugin for you: multiexcerpt (https://marketplace.atlassian.com/plugins/biz.artemissoftware.confluence.multiexcerpt.MultiExcerptMacro/cloud/overview)

It is working similar as the excerpt macro, except you can put more than one excerpt on a page and the excerpt include macro is not showing the error message, if the user is not allowed to view the included excerpt. It simply shows nothing. I think, that's what you are looking for. But it is not for free.

Page A = page visible for everybody

Page B = page visible only for some users

On page B:  Use the excerpt macro around your text. Set your restrictions on this page.

On page A: Use the include excerpt macro

Thomas Schlegel Community Champion Mar 17, 2017

With that, user who are not allowed to see the excerpt get an error message: Error rendering macro 'excerpt-include' : User 'xxx' does not have permission to view the page 'xxx'.

If you were on a self-hosted instance you could use the visibility plugin. But it is not available for Confluence Cloud.

Thanks for the quick response! Any way to make it so that Page A does not show the message below when a user is not authorized to view it?:

 

Error rendering macro 'excerpt-include' : User 'XXXXX' does not have permission to view the page 'Full Article'.

Thomas Schlegel Community Champion Mar 17, 2017

not on Cloud, as far as I know... sad

Do you know if it is possible to make a blog post available to only some groups/users and not all groups/users in the space?

Thomas Schlegel Community Champion Mar 17, 2017

yes, you can restrict a blog post to users or groups as any regular page.

That's great! Will it show up at all to those in the blog roll? As in, will they see the article even though they can't read it?

Thomas Schlegel Community Champion Mar 17, 2017

The blog post is not visible for those, who cant' read it. They don't have it in their blog roll.

You can try it. Create a blog post and restrict it to you. Your colleague should not see it at all.

Thanks so much for your help!

Thomas Schlegel Community Champion Mar 17, 2017

You're welcome smile

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

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

166 views 8 11
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