Hi,
We are trying to use the Get users from Group REST based on the documentation to get the members of groups from our Jira Cloud.
We got the result but the nextPage link (and also the self-link) is broken. The previously used groupName parameter is missing from the URL. It was replaced by the groupId parameter.
Thanks to that, if we try to use the nextPage link we got an error:
"errorMessages": ["The group name can not be empty"],
We have a "workaround", we can add the groupName by hand to the URL. I'm just curious anybody else had the same problem? Or know the reason behind it?
The original REST:
https://<my.domain.atlassian.net>/rest/api/3/group/member?groupname=jira-software-users&includeInactiveUsers=false&startAt=0&maxResults=3
Result:
{
"self": "https://<my.domain.atlassian.net>/rest/api/3/group/member?includeInactiveUsers=false&maxResults=3&groupId={some_group_id}&startAt=0",
"nextPage": "https://<my.domain.atlassian.net>/rest/api/3/group/member?includeInactiveUsers=false&maxResults=3&groupId={some_group_id}&startAt=3",
"maxResults": 3,
"startAt": 0,
"total": 18,
...
Based on the documentation, I think the result should be:
"nextPage": "https://<my.domain.atlassian.net>/rest/api/3/group/member?groupname=jira-software-users&includeInactiveUsers=false&maxResults=3&startAt=3",
Thanks in advance!
Daniel
Hi @Daniel Toth
Thanks for bringing this up, the documentation may not be update yet!!
But it works fine when you use Group Id right from starting
Here's the reference
curl --request GET \
--url "https://your-site.atlassian.net/rest/api/3/group/member?includeInactiveUsers=false&groupId=your-group-id&startAt=0&maxResults=50" \
--user 'email:token' \
--header 'Accept: application/json'
Thanks
We receive the same error in this case: "The group name can not be empty"
Maybe the links in the response were generated by the updated API, but it looks like the validation is based on the old one...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If we use group id in the API, the next API URL will be generated with proper parameters, please go ahead and try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pramodh M,
Well, It didn't work on Friday with the groupId. We tested again today with my colleague and now it's fine.
I guess something was not updated properly last week.
Thanks for your help!
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Pramodh M
Request result:
{"errorMessages":["You are not authorized to perform this action. Administrator privileges are required."],"errors":{}}
Am i correctly understand, to read members of some group i have to be Administrator?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.