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

How to enable a user plugin to show only for administrators?

Hi everybody,


I'm using Confluence 5.3.4.


But I'd like to restrict plugins that I created.
In my atlassian-plugin.xml and I'd like to add a visibility parameter in my atlassian-plugins.xml...
But I don't find a solution...


Could you, please, help me to resolve this issues please ?

3 answers

1 accepted

Ok Thibaut,

so this might be a little bit tricky ;)

If you need a "standard" macro, add the hidden parameter in the plugin.xml

Next, create a user macro, calling your macro. If you hava any macro parameters, you need to pass them from the user macro your macro. The user macro can be set to sysadmin only -> https://confluence.atlassian.com/display/DOC/Writing+User+Macros

Or, I'm not sure if this works, create your macro two times in your plugin.xml but with different keys. Give one of them the hidden parameter and switch them. When you need the macro. Enable the vissible and deactivate the other and as long as you don't need it change the ative status...

Thank you for your help.

The only issue with this parameter (hidden) is the administrator cannot access also to this macro...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Off-topic

Run into these Solution Partners at Atlassian Open

Hey there Community! Atlassian Open is kicking off in less than a month and we can't wait to touch down in Vienna, Sydney and Boston. This is an opportunity to create the future of teamwork with ...

99 views 0 4
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