Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Is there a way to restrict who can use or add a macro to a page?

I built a custom plugin that I would like to only be accessible to a specific group of users in confluence. Everyone should be allow to view the content it outputs when the page is being viewed, but only a specifc group should be allowed to add it to a page.  

It would be great if I can just have it not show up in the macro browser or macro autocomplete dropdown if you are not in the allowed group. If thats not possible it would be fine to just throw an error if someone tries to add it to a page and they are not in the right permission group. I assume this would require some check while they are configuring the macro but just not sure how to do that.

Anyone done anything similar to this or know of an easier way to go about this?




1 answer

1 accepted

0 votes
Answer accepted
Diego Atlassian Team Sep 27, 2019

Hello there! I believe that what you are looking for is a set of permissions for macro usage, @Alex Yasurek.

Currently, this is not natively available for Confluence. We have a feature request that points directly at this. Here, have a look:

Looking through our marketplace I could find a third-party plugin that might address your needs. The plugin name is Macro Security for Confluence. You can take a look at it here:

However, I am not familiar with the ins and outs of the plugin. The description does fit your needs, though.

Let us know if this shed some light on your path, Alex! Looking forward to your reply.

I did find that same third party macro but the only issue is that it mainly works with other Bob Swift apps. They do give you instructions on how to apply it to custom apps but that would require going through each one, adding code and rebuilding them all. If worse comes to worst that may be our only option but just wondering if anything else was available. 

It would be great if Atlassian offered this natively. I voted for that feature request so hopefully it will be considered.



Diego Atlassian Team Sep 30, 2019

Hey thanks for keeping the thread alive, @Alex Yasurek !

Also, great to have you taking part in this issue and voting the existing feature. Having the input from different customers on requests like this is always good! Currently, I believe that this is our only option on macro restrictions.

If you ever need assistance again, come share with us.

@Diego is there currently a feature request for this functionality in cloud? I would love to vote for it.

Like Diego likes this
Diego Atlassian Team Mar 12, 2021

Hey there @Helen Gosper ! We do have a request for this very functionality in Cloud:

Ability to Restrict Add-ons/Macros to Groups in Confluence

Let us hear from you!

Suggest an answer

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

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,457 views 7 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you