How can I display specific content on a page for only some users/groups?
Asked by Xavier Amador:

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.


Answers:
author: Thomas Schlegel
body: 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.

comments: author: Henry Auffahrt
body: Hi [@Thomas Schlegel](/t5/user/viewprofilepage/user-id/781483) thanks a lot for this answer! This is exactly what I'm looking for. Sadly, it is not working for us. As you can see in my screenshot, I got error messages like these? (I tried first the original Excerpt Macro, and then the three implementation of Multiexcerpt)   
Did I miss something? Do you have any advice how to solve this problem?

![Screenshot 2021-12-03 at 08.28.56.png](https://community.atlassian.com/t5/image/serverpage/image-id/172091i205A08B8DE2ADEBA/image-size/large?v=v2&px=999 "Screenshot 2021-12-03 at 08.28.56.png")


author: Thomas Schlegel
body: Hi [@Henry Auffahrt](/t5/user/viewprofilepage/user-id/1386237) ,

I have just tried this again with Confluence 7.13 and Multiexcerpt 5.6.0 - it works as expected.

This is the page when a user has permission on the source space:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/172177i386AC165B93F9C68/image-size/large?v=v2&px=999 "image.png")

And this is the view if the user doesn't have the permission:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/172179iFE9AF80479929ADF/image-size/large?v=v2&px=999 "image.png")

Maybe there's a difference between on premise and cloud?


author: Henry Auffahrt
body: Hi [@Thomas Schlegel](/t5/user/viewprofilepage/user-id/4455933)  

I wrote the support from the plugin vendor. It is a difference between on premise and cloud. This feature is missing in the cloud instances... really annoying...


author: Steffi Frank
body: 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

comments: author: Thomas Schlegel
body: 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.


author: Xavier Amador
body: 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'.*


author: Thomas Schlegel
body: not on Cloud, as far as I know... ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")


author: Xavier Amador
body: 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?


author: Thomas Schlegel
body: yes, you can restrict a blog post to users or groups as any regular page.


author: Xavier Amador
body: 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?


author: Thomas Schlegel
body: 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.


author: Xavier Amador
body: Thanks so much for your help!


author: Thomas Schlegel
body: You're welcome :smile:


Tags: cloud

confluence-cloud