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
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

346 views 4 9
Read article

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