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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,321 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot