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

Ankuskum 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
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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