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?
G'day @mgnavarrete, and welcome to the community!
We do have an available API to send user invitations into Bitbucket cloud Workspace:
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.