Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to Limit an Event Listener to a Specific User Group?


I'm sure this is relatively simple, but I've developed an event listener that sends an email when a user is added to a user group, however I want to limit the scope of this listener to only a specific group or set of groups.  What would be an example condition that would allow me to define that?


2 answers

1 accepted

0 votes
Answer accepted

Oddly enough, after taking a break from assembling the solution I was working on, I realized the simplicity of the answer.

event.groupName == 'groupname'

This is all that was needed in the 'Configuration and Condition' field to limit the event listener to only users added to that group.

Hopefully if someone else runs into this issue it helps.


0 votes
Ravi Sagar _Sparxsys_
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.
Oct 29, 2020

Hi @Kai Lamberson 

In your code you can fetch the group name of a user by something like this.


I hope it helps.


Hey Ravi,

Appreciate the quick response.  The case here is it's not associated with a specific user.  The listener is notifying us that a new user was added to a group using the GroupMembershipCreatedEvent.  I need to limit the scope to only send a notification if the group equals a specific user group(s).

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events