Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Xavier Amador
Contributor
March 17, 2017

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

3 votes
Answer accepted
Thomas Schlegel
Community Champion
March 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.

Henry Auffahrt
Contributor
December 2, 2021

Hi @Thomas Schlegel 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

Thomas Schlegel
Community Champion
December 3, 2021

Hi @Henry Auffahrt ,

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

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

image.png 

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

Henry Auffahrt
Contributor
December 6, 2021

Hi @Thomas Schlegel

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... 

1 vote
Steffi Frank
Contributor
March 17, 2017

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
March 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.

Xavier Amador
Contributor
March 17, 2017

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
March 17, 2017

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

Xavier Amador
Contributor
March 17, 2017

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
March 17, 2017

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

Xavier Amador
Contributor
March 17, 2017

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
March 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.

Xavier Amador
Contributor
March 17, 2017

Thanks so much for your help!

Thomas Schlegel
Community Champion
March 17, 2017

You're welcome smile

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events