How can I add a new user to bitbucket via api.bitbucket.org/2.0/

Andrii Romanyshyn July 17, 2022

Hello
My company has a new developer user and I need to add them to Bitbucket and the group using the Bitbucket API
Is there an endpoint for this?

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.
July 18, 2022

Hey Andrii,

Welcome to the Bitbucket Cloud Community!

Unfortunately, we do not have an API endpoint to handle adding a new member to a workspace. This is because they must be invited first via email within the Bitbucket Cloud UI, and they must accept the invite if they already have a Bitbucket Cloud account (or sign up to Bitbucket first and then accept).
The process is detailed here:
https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/

Once the user is present on the workspace however, they can be added to an existing group by following the steps contained in the link below via our /1.0/groups endpoint (see PUT new member into a group heading):
https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Andrii Romanyshyn July 19, 2022

Hi Ben,

thank you for the information

Like Ben likes this
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 19, 2022

Hey Andrii,

No worries - happy to be of assistance :)

Cheers!

- Ben (Bitbucket Cloud Support)

Like Andrii Romanyshyn likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events