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

getting error in fetching group details using rest api for bitbucket

Rakesh Verma
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!
February 8, 2024

getting error in fetching group details using rest api for bitbucket

API Endpoint - https://bitbucketUrl/rest/api/1.0/admin/groups/{group-name}

 Invoke-RestMethod : The remote server returned an error: (404) Not Found.



fetched group-name from another end point which gives list of groups(using below end point), this works fine


1 answer

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 11, 2024

Hi Rakesh,

The URL for this particular endpoint is as follows (replace WorkspaceID/groupname with actual value and remove the curly braces):{workspaceID}/{groupname}

I would suggest first calling just the workspaceID without the {groupname} for a full list of groups.

You'll need to take note of the "slug" value, as this is the value that would be used for the {groupname} mentioned above, this value is case sensitive and will result in a 404 if it is not requested in lowercase and spelled exactly how the slug value is written.

I've tested this against my own workspace and it has worked without issues, for example one of the "slug" values is non-admin - if I write "Non-Admin" in the API request, I get a 404 error but if I put non-admin it works without issues as it matches the slug value.

Hope this helps, please let me know if any issues.


- Ben (Bitbucket Cloud Support)


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events