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?
Thanks