Minimal Jira version to have /rest/api/2/group/member working

Bertrand_DELAITRE June 10, 2019

Hi all,

 

I'm trying to get all users from a group using "/rest/api/2/group/member". Each time I call this API, I get a 404 error like the group doesn't exist.

<status>

    <status-code>404</status-code>

    <message>null for uri: http://[myserver]/rest/api/2/group/member?groupname=jira-users</message>

</status>

 

I'm using an old version of Jira: 6.4.11. Is there a limitation with this version? What is the minimal Jira version to used with this API ?

Best regards

1 answer

1 accepted

0 votes
Answer accepted
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.
June 10, 2019

Hi @Bertrand_DELAITRE 

Check this https://docs.atlassian.com/software/jira/docs/api/REST/6.4.1

I don't think group/member is available in 6.4.1.

Try this instead: /rest/api/2/group?groupname&expand

Ravi

Bertrand_DELAITRE June 10, 2019

Already tried group with expand but I only get 50 users

Bertrand_DELAITRE June 10, 2019

OK, with the link you've provided, I'm able to understand how to get all the user with iteration

Like Ravi Sagar _Sparxsys_ likes this
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.
June 10, 2019

Good to know.

Suggest an answer

Log in or Sign up to answer