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,463,219
Community Members
 
Community Events
176
Community Groups

Add Users to workspace through API REST

Hi! 

I have an identity provider to obtain users in my organization at atlassian adminstrator. Now, I want to add those users automatically to my workspace in Bitbucket Cloud. Is there a way to add them or send them an invitation using an API?

In case this is not possible using a API, is there a way to invite users to a workspace automatically instead of doing manually user by user in the Bitbucket Cloud UI?

 

1 answer

1 accepted

0 votes
Answer accepted
Syahrul Atlassian Team Jan 24, 2023

G'day @mgnavarrete, and welcome to the community!

We do have an available API to send user invitations into Bitbucket cloud Workspace:

invitations Endpoint 

Example curl:

curl --request PUT \
  --url https://api.bitbucket.org/1.0/users/<workspace>/invitations \
  --header 'Authorization: <auth> \
  --header 'Content-Type: application/json' \
  --data '{"email":"<email_to_be_invited>","group_slug":"<group_to_be_invited_to"}'

Currently, in the Bitbucket cloud, the user has to be manually invited into Bitbucket and accept the invitation before accessing the Workspace.

That said, our roadmap mention User provisioning with Atlassian access around Q2 2023, so do keep an eye on it.

Cheers,
Syahrul

It works perfectly, thanks!! 

I will keep and eye on the roadmap :)

Like Syahrul likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events