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

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.



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.

Suggest an answer

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

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

353 views 11 11
Join discussion

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