The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Handling user and group migration when restoring spaces in Confluence Data Center without assigning

Khammampati Surendra
Contributor
October 21, 2024

We are migrating spaces from a source Confluence Data Center instance (via backup) to a target instance (via restore). However, we have noticed that individual users and groups associated with those spaces are not automatically created if they do not already exist in the target instance.

 

Problem:

To work around this, we are currently using a Groovy script to retrieve users from the source instance and create them in the target instance. Since the password is a mandatory parameter for creating users, we are temporarily using the username as the password for testing purposes. However, in a real scenario, this is not viable since:

1. We do not know the users’ actual passwords.

2. Users need to log in using their existing passwords without us having to set or assign them during migration.

 Question:

Is there a way to migrate or create users in the target instance such that they can log in using their actual password (from the source instance) without us manually setting a temporary password during the migration process?

 We are looking for a solution that avoids setting passwords for users during migration while still allowing them to authenticate seamlessly with their existing credentials.

And also where we can see the user in a Space

 Environment:

 • Confluence version: 8.5.xx

Deployment: Data Center

Migration method: Backup/Restore for spaces, Groovy script for users

User creation method: Groovy script using UserAccessor class

Looking forward to recommendations on the best approach to handle user and group migration without disrupting the user login experience.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 3, 2025

Hi @Khammampati Surendra 

Any solution involving direct password migration or recreation poses security risks and is not recommended. The best approach is to use an external user directory or implement a password reset process for users after migration.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

TAGS
AUG Leaders

Atlassian Community Events