Movement of user and connection from one dataiku instance to another

Solved!
saurabh
Level 3
Movement of user and connection from one dataiku instance to another
Hi Team,
Good Day!
We have a requirement where we are migrating the users from multiple Dataiku instances on multiple servers to a single Dataiku instance. In this process we will have to move the following components from all instances:
--users
--groups
--connections
--code environments
 
Kindly help to suggest if there is a way to handle this easily instead of manual approach. If there is a Python API script, request you to please share the same. 
Operating system used: linux on prem
0 Kudos
1 Solution
AlexT
Dataiker

Hi @saurabh,

While there isn't a single script, you can use the Python APIs to automate this process

1) Users
a) Users listing existing users on an instance - https://doc.dataiku.com/dss/latest/python-api/users-groups.html#listing-users
b) Create users via API on a new instance - https://doc.dataiku.com/dss/latest/python-api/users-groups.html#a-local-user-with-a-password
2) Groups 
a) https://doc.dataiku.com/dss/latest/python-api/users-groups.html#listing-groups
b) https://doc.dataiku.com/dss/latest/python-api/users-groups.html#creating-a-group
3) Connections Retrieving the connections that are defined in the first instance and recreating them in the second instance  https://doc.dataiku.com/dss/latest/python-api/connections.html#connections 
4) Code envs: https://doc.dataiku.com/dss/latest/python-api/code-envs.html#creating-a-code-env 

Attached a sample script for Code envs a similar approach can be done for the rest of the items. 

Hope that helps!

View solution in original post

0 Kudos
1 Reply
AlexT
Dataiker

Hi @saurabh,

While there isn't a single script, you can use the Python APIs to automate this process

1) Users
a) Users listing existing users on an instance - https://doc.dataiku.com/dss/latest/python-api/users-groups.html#listing-users
b) Create users via API on a new instance - https://doc.dataiku.com/dss/latest/python-api/users-groups.html#a-local-user-with-a-password
2) Groups 
a) https://doc.dataiku.com/dss/latest/python-api/users-groups.html#listing-groups
b) https://doc.dataiku.com/dss/latest/python-api/users-groups.html#creating-a-group
3) Connections Retrieving the connections that are defined in the first instance and recreating them in the second instance  https://doc.dataiku.com/dss/latest/python-api/connections.html#connections 
4) Code envs: https://doc.dataiku.com/dss/latest/python-api/code-envs.html#creating-a-code-env 

Attached a sample script for Code envs a similar approach can be done for the rest of the items. 

Hope that helps!

0 Kudos