Forums

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

Get users who are in jira_developer group using rest api

Madhura A S
Contributor
October 11, 2018

Hi,

Is there any rest api to get the users who are not in jira_developer group

I have used below API to get the users in jira_developer group

http://{jira-url}/rest/api/2/group?groupname=jira-developer&expand=users

 

Regards,

Madhura

1 answer

1 accepted

1 vote
Answer accepted
Maciej Olszewski
Contributor
October 11, 2018

Hello,

I think easier would be to get list of all users with

/rest/api/2/user/search?username=.

After that get users from target group and return these users which aren't in list of users from that group.

Cheers,
Maciej 

Madhura A S
Contributor
October 11, 2018

Hi Maciej,

Thanks for the answer. 

Maciej Olszewski
Contributor
October 12, 2018

No problem, glad i could help :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events