Script Runner: get users not in jira-users group

I am trying to identify users not in the jira-users group. I have this script i found that gives me members of the jira users group but i'm not sure of the syntax to get only users not in the jira-users group. I also am trying to have this script send an email with the output of the script. I would appreciate being pointed to some resources that would help me with this. is there some documentation that shows this?

1. groovy script to show "non jira-users" members

import com.atlassian.jira.ComponentManager

def componentManager = ComponentManager.instance

Thank you.

1 answer

1 accepted

2 votes
Accepted answer

You will have to get all users using getUsers method and use GroupManager to see if the user is in jira-users group or not.,%20java.lang.String%29

to give credit where credit is due, I got this script from one of Jamie Echlin posts. Great script Jamie.

I will take a look at this option.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

888 views 3 9
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