Forums

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

API 2.0 User/Group management

Elena Dzhordzhilova March 29, 2023

Dear Community, 

 

I would want to ask you if it is still possible to manage users/groups in Bitbucket Cloud via API v1.0. I know that v1 is deprecated almost 5 years ago, but inside the documentation I see it is still available for use, because there is no equivalent option for this in version 2. 

 

If it is possible, what more than access token is necessary to access it, because when I try to get information about groups, I get the following error: 

"Message: Token is invalid or not supported for this endpoint.  "

 

The API requests which I'm trying are:  

https://api.bitbucket.org/1.0/groups/{workspace_id}/

https://api.bitbucket.org/1.0/groups?{filter}&{filter}&...


1 answer

1 accepted

0 votes
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 30, 2023

Hey Elena,

I can confirm that even though it is deprecated - the /1.0/groups endpoint is available for usage.

The easiest way to authenticate with the API is by using App Password, once you have created the App Password - you can substitute it in to your curl command, for example:

curl --request GET \
--url https://api.bitbucket.org/1.0/groups/{workspaceID} \
--user {username}:{AppPassword}

NOTE: You will need to replace the values in the curly braces with actual values, the braces should not be present in the final command either. 

Cheers!

- Ben (Bitbucket Cloud Support)

Elena Dzhordzhilova April 3, 2023

Hello Ben, 

 

Thank you a lot! 

 

One last question, is it possible such an authentication to be reached by API token for Workspace? 

Best regards, 

Elena

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2023

Hey Elena,

Unfortunately, as the 1.0 endpoint family is deprecated, repository access tokens (RATs) are not supported as these are a relatively new form of authentication.

 The only supported authentication methods for this endpoint are as follows:

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events