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?

Thibaut Wavreille Nov 28, 2013

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

1 vote
Answer 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...

0 votes

You can add a hidden-parameter to your macros in your plugin-xml

-> https://developer.atlassian.com/display/CONFDEV/Including+Information+in+your+Macro+for+the+Macro+Browser

0 votes
Thibaut Wavreille Nov 29, 2013

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

212 views 22 10
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