Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Monitor User that get added to groups

Christian Delgado
Contributor
April 5, 2023
Hi,
 
This is my first year working with Jira and I've been tasked with the following:
- We manage Jira Software licenses by users that get added to a 'Jira Group' in Atlassian Admin.
- User joins --> License is enabled
 
Request:
The task is to be able to monitor this so that when a user gets added we will know a license has been granted, by email to selected people. We all want to be able to see who is getting licensed so we can pull reporting at the end of every month.
 
 
The idea is:
  1. The user gets added to the group.
  2. Set up some sort of watcher to pull the list of users using the REST API on a schedule and compare the list with the previous one and provide only the new users in that group.
  3. Email the new users to selected people.
 
What I have tried so far:
  • Pulled the list of users in that group using Python using the REST API:
    • GET /rest/api/3/group/member (so far only 50 are generated at a time so I'm looking at pagination, but that's a different topic)
  • Pulled the same list using Postman which is easier to visualize, but I am running into the same issue I only get 50 at a time.
  • I haven't been able to find an out-of-the-box solution in Jira to monitor this group or any group, I am leaning towards Postman to help me with this by using an event tracker and Test scripts.
 
 
If anyone can recommend a different idea, I would highly appreciate it.
 

1 answer

0 votes
Bill Sheboy
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.
April 5, 2023

Hi @Christian Delgado 

Without a marketplace addon to do this, I agree you will need to use pagination to get all the users with the REST API.

To watch for just the changes, you could set up a webhook to push the audit log events related to users, and then parse that in another tool.  It will not have the group change information you note, but the created-event may be enough to help with your REST API calls.  https://developer.atlassian.com/cloud/jira/platform/webhooks/

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer