Forums

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

How to check "jira-users" group is used in permission schemes

Ankuskum
Contributor
December 20, 2021

How to check "Jira-users" group is used in permission schemes. If yes then send an email to Jira admins with script-runner.

2 answers

0 votes
PD Sheehan
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.
April 29, 2022

Here is a short script that will output all the Permissions schemes and permissions granted directly to jira-users.

This won't account to permissions granted to jira-users via a project role

import com.atlassian.jira.component.ComponentAccessor

def pm = ComponentAccessor.permissionSchemeManager
pm.getAssociatedSchemes(true).collect { scheme ->
scheme.entities.collect { item ->
if (item.type == 'group' && item.parameter == 'jira-users') {
"${scheme.name}.$item.entityTypeId"
}
}.findAll()
}.findAll().flatten().join('<br>')
0 votes
Brant Schroeder
Community Champion
April 2, 2022

@Ankuskum you can find this information through SQL queries.  Information can be found here https://confluence.atlassian.com/jirakb/how-to-identify-group-usage-in-jira-441221524.html

Suggest an answer

Log in or Sign up to answer