excerpt include macro not rendering content when user doesn't have permission to space

I have the following use case, which I can't seem to get the excerpt include macro to support.  Does anyone know how I can support this use case?


I have two confluence spaces A and B.  I want to make some of the pages in space A available and included in space B.  To do this, I have used an excerpt macro on the content in space A and an excerpt include macro on space B to pull in that content. This works great, now here's the problem....

I have two users X and Y.  User X is an "admin" user and as such can view content in both spaces A and B (this works fine).  For user Y, I want them to see all of the content in space B (including the content I'm trying to pull in from space A using the excerpt include macro), but user Y can NOT have access to space A. 

The problem I'm running into is that because user Y does not have permission to view space A, the content I am attempting to pull into space B with the excerpt include macro does not render and instead displays an error "Error rendering macro 'excerpt-include' : User 'Y' does not have permission to view the page 'spaceA:pagename'."


Does anyone know how I could accomplish the above use case?  Your help is very much appreciated.  smile

2 answers

1 accepted

0 votes
Answer accepted
Davin Studer Community Champion Nov 04, 2014

There are a couple ways to do this. Ideally you go from least restrictive to the most restrictive. Which would mean that you have the content in in space B and include it to space A. Or you could use the Perimiter add-on.

Davin Studer Community Champion Nov 04, 2014

You could also have the content in a third space that everyone has access to and include it into both A and B.

Thanks @Davin Studer, this was super helpful!  Is there a way to do this without having the source content in space B?  The reason we want it in space A is because space A is our central repository for all of this documentation, some of which is appropriate for people who have access to space B and some of which is not.  From a content creation / maintenance perspective, it is easier for us to maintain all of the source content in one space (space A).

Davin Studer Community Champion Nov 05, 2014

Did you check out the Perimiter add-on that I mentioned? I'm pretty sure tha add-on can get around the permissions issue.

@Davin Studer - thanks so much, Perimeter seems to have worked! there's still an issue with images coming in. I think I will start a new post for that. Thanks again!


Did you ever find a solution to your problem?  We have the exact same scenario and have tried Perimeter, but it will not render images. 



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

204 views 2 10
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