Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Modify Global Permission Groups in bulk Edited

Hi All,

Has anyone removed Groups from a Global Permission in bulk?

We have:

  • A custom (app-based) global permission, giving access to an app
  • ~30-50K groups in the global permission
  • Jira Data Center

We'd like to:

  • Remove all groups, aside from jira-software-users, and a few other platform-wide groups

^ Has anyone done this before without doing it manually? We have ScriptRunner, if that helps!


1 answer

0 votes

Assuming this app global permission are stored like all the other global permissions, you should be able to use

With Scriptrunner console, print the list of permission keys:

import com.atlassian.jira.component.ComponentAccessor

return ComponentAccessor.getComponent(GlobalPermissionManager).allGlobalPermissions*.key

If you can identify the key for you app that you want to modify, plug it in here:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.permission.GlobalPermissionKey

def GROUPS_TO_KEEP = ['jira-software-users', 'other-group-name']

def gpm = ComponentAccessor.getComponent(GlobalPermissionManager)
gpm.allGlobalPermissions.each{ perm->

I haven't actually tested this or used this manager before, I just found it by searching the Javadoc... so be careful with it.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you