It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

RSS macro in user macro

Hello all you guru's... I am trying to embed the RSS macro in a macro that I have created. If a user is part of the admin group, they should see the macro, otherwise they should get an error saying they do not have access. Forgive my lack of skills, and thank you in advance!

## @noparams

#if($userAccessor.hasMembership("confluence-administrators", $




You do not have access to this RSS feed.


1 answer

1 accepted

0 votes
Answer accepted

Hi Matthew,

If you're on Confluence 4.x try this User Macro:

## Macro title: User RSS
## Macro has a body: N
## Body processing: No macro body
## Output: Selected output option
## Developed by: Andrew Frayling
## Date created: 10/03/2012
## Installed by: <your name>
## Macro to display an RSS feed to administrators only
## @noparams

#if ($permissionHelper.isConfluenceAdministrator($action.remoteUser))
  <ac:macro ac:name="rss">
    <ac:parameter ac:name="url"></ac:parameter>
  <strong>You do not have access to this RSS feed.</strong>

Use $action.remoteUser to get the currently logged in user and for permissions there's $permissionHelper which gives you access to to check for the various permissions a user may or may not have.

If you're on Confluence 3.x the macro is the same, but instead of:

<ac:macro ac:name="rss">

you use the old style wiki markup:


Hope that does what you want?


Andrew, you are the man!!!!! Thank you so much :)

You're welcome. Glad it was what you wnated.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 12, 2019 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 (you can also ...

2,510 views 14 20
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