Security level in my custom plugin Edited

Hi!
  Can you tell me how to make such a change in the code in my custom plugin that only users from one particular group can use this add-on?
 Thanks

3 answers

1 vote
Alexey Matveev Community Champion Dec 28, 2017

Hello,

Find the entry point in your plugin and put there condition on user groups.

You cannot add some "security level" for entire add-on. Because add-on is a set of pages, JQL functions, gadgets and so on.

You should add permission check for each module:

  • For "webworks" (pages) you can use "roles-required" attribute
  • For gadgets you should check user permission ot group programmatically
  • etc.
0 vote

Take a look at SALs usermanager - it’s probably got the easiest api for this. But you’ll have to do it programmatically.

 

Youll probably also want to ask these types of questions of at community.developers.atlassian.com

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,209 views 13 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot