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

How to migration users from Jira User Directory to internal Directory

pneyer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2023

Hi

Our Bitbucket Server uses User Directory from Jira Server.

Since we plan to migrate to Jira Cloud, Bitbucket Server can no longer use Jira User Directory...

How can you migrate all existing bitbucket users from an external user directory (Jira) to the internal bitbucket user directory, especially without losing all user-specific data, like ssh-keys, groups etc?

2 answers

1 accepted

0 votes
Answer accepted
pneyer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2023

After some testing with deactivation of Jira-user-directory-sync, we checked how Bitbucket behaved and whether accounts and its details still remain in bitbucket server or not.

Based on the fact that user-specific settings like ssh-keys are created/managed on Bitbucket and not on the Jira user, this data must be persisted on Bitbucket server database.

 

So, answering my own question and how we did it:

  • Login as a internal-user-directory admin- Disable "Jira User Directory Sync" on Bitbucket -> Bitbucket runs now with internal user directory only
  • Recreate all groups that were present and are missing now, with identical names
    • Create a new bitbucket account per user that existed before, take care same E-Mail address is used!
  • User receives "Welcome to Atlassian Bitbucket"-E-Mail to setup new password
  • Move "new" User to correct/same groups as it was configured before via Jira user directory

Note: All user-specific configs like ssh-keys still exist afterwards
Note2: This process could probably be automated using bitbucket API

 

Hope this helps anybody running into the same requirements

0 votes
mp technology
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2023

delete

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events