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 votes
Daniel Wester Community Champion Dec 30, 2017

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,801 views 2 7
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