Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

how to remove users from jira-software-users group

Matías Völgyi
Contributor
July 11, 2024

I'm trying to get a list of all Jira users, search for those who has last seen in jira a month ago, and remove those users from  "jira-software-users" group.
So far, I'm able to get that list as a CSV manually, process it and then try to remove the users from the group. My issue here is that I can't get the accountId from the API call /rest/api/3/user because the query parameter username is no longer available.
From the CSV file I have a field named User id, but it looks like is not related with 
accountId that I need for /rest/api/3/group/user and being actually able to remove the user.

Could someone plz point me to the right direction here? 

Thanks in advance! 

1 answer

1 accepted

0 votes
Answer accepted
Pavol Gočal
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.
July 11, 2024

Hello @Matías Völgyi

have a look at FindUsers API.

 

Matías Völgyi
Contributor
July 11, 2024

Thank you Pavol! that API endpoint is really helpful, I was able to check it and it looks like the User id field that I got from the CSV file is actually the accountId from the API, do you know if there's a way to get all Jira Cloud users with the response field Last seen in jira or Last active?

Pavol Gočal
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.
July 11, 2024

I did a little research and couldn't find a way to add specific parameter to the response. Hope that someone from the community might help.

Matías Völgyi
Contributor
July 11, 2024

Thank you again! yeah, sadly the Jira Cloud version does not have those fields which is weird, your firs answer helped me to go to the right direction for my issue :) thanks for that. 

Like Pavol Gočal likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events