How to find the unmapped groups in Jira??

How we can find unmapped groups (i.e groups which are not mapped with any project)???

Please suggest some query to find the same.

2 answers

1 accepted

0 votes
Accepted answer

Hi there, in this page you have a query to retrieve a list of Projects where a particular group has any permissions.

I hope it helps.


Hi Tiago,

I need group names which is not mapped with any permission scheme.

Please help me tom get group names. I dont need project name as output.

Kindly help me to make a query to fetch the groups which is not mapped with any permission scheme.

Tiago, your link seems to be broken. Is there any way you could repost this solution?

0 votes

With difficulty, because you're looking for negative data.

What you probably need to do is build a list of what groups are used and then subtract it from the list of all groups. You'll need to look through all the project roles, all the permission schemes, all the notification schemes, all the security schemes, any group field data, all the filters and all the gadget definitions to find out where groups are being used. I can't think of an easy way to do any of this in one go.

Please help me to find the groups which are not mapped with any permission scheme..

Again, there is no way to do this because you can not search for a negative value.

You need to

  • get the full list of all groups
  • search for all groups that are used
  • Subtract the used groups from the full list

Some extra points here

  • You can easily modify Tiago's SQL to return groups in use instead of projects
  • Groups are not ONLY used by projects, they're used in many places. Just because you find a list that are not used in permissions, doesn't mean it's ok to delete them

In that query i am retrieving project name as the output.

But i need to find the group name which is not mapped with any permission scheme.(ie. Group names i should get as output).

Hi All,

Please tell me how to link permission scheme with groups with the help of sql query..

This is to fetch the group which is not mapped with any of the permission scheme.

Kindly help me on this ASAP

Hi Nic,

In nodeassociation table there is no link between group and permission scheme.

So , how i can make a query ???

Again, get the list of groups, then subtract the list of groups in use from it.

You also need to think through what you mean by "groups used".

If you read the permission scheme table, you can extract lines where you've got "allow permission to group X", but that doesn't cover the use of groups via role. Or group-picker custom field.

It should be easy to change Tiago's SQL to something that will get you the groups in the schemes though.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,946 views 19 22
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