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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The function getGroupsWithPermission from that class should do the trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.