Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Security level in my custom plugin

d-sokolovskiy December 28, 2017 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 28, 2017

Hello,

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

d-sokolovskiy December 28, 2017

thank you

0 votes
Daniel Wester
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 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

0 votes
Domenico Manzo _Actonic_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 28, 2017

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.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events