Forums

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

Rest API call to get the list of users from specific group

Sandesh TM
Contributor
September 27, 2023

I am getting the below error in rest API call for getting the list of users from the specific group.

 

{
    "errorMessages": [
        "The group name can not be empty"
    ],
    "errors": {}
}

Here is the API call I am using 

http://localhost:8080/rest/api/2/group/member/?jql=groupname="group name"

 

Please share the API for getting the list of users from the specific group.

1 answer

1 vote
Márton Kelemen November 1, 2023

Hi Sandesh,

 

Have you tried the following?

'http://localhost:8080/rest/api/2/group/member?groupname={groupname}'

Both the 'jql=' part, as well as the '/' after the member are problematic. In addition, the {groupname} should be HTML-escaped beforehand, depending on the tool you use to call the API.

 

Best,

Márton

Hari Gowdru
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2024

Hi Sandesh, 

Do we have similar API for Bitbucket Data Center version?


GET: https://Bb-instance/rest/api/1.0/admin/groups 

is fetching all the group from the instance.

Is there a way to get the list of users in specific group.

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events