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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,881
Community Members
 
Community Events
184
Community Groups

API 2.0 User/Group management

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.
Mar 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)

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.
Apr 03, 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events