Forums

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

How to determine which users take up which type of Jira License in a P2 plugin

Tore Gunnar Larsen January 4, 2019

I'm developing a P2 plugin that is supposed to figure out which users occupy which type of Jira Application License (e.g. Jira Core, Jira Software of Jira Service Desk).

I found out how to get lists of users, groups, projects, roles etc. but I can't seem to find out how I can determine if the individual user takes up a license and, if they do, which type.

Any help would be appreciated.

1 answer

1 vote
Nic Brough -Adaptavist-
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.
January 6, 2019

I'm afraid you pretty much have to replicate the rules Jira uses internally.  Use the global permission manager to get a list of which groups are named for "use core", "use software", and "use Service Desk", then list all the users in the relevant groups, discarding any flagged as inactive.

Roles and projects are irrelevant to the licencing, it is purely the global groups and the inactive flag.

Tore Gunnar Larsen January 17, 2019

Thanks for the answer. After looking at the GlobalPermissionManager, I'm not entirely certain what you're referring to.


I've been unable to find a method that returns a list of the groups associated with the names that you listed.

I'd much appreciate it if you could give me some further hints on how to do that.

Nic Brough -Adaptavist-
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.
January 21, 2019

Suggest an answer

Log in or Sign up to answer