Bulk Import of Users

Answered

I'm looking to move from two earlier versions of YouTrack (5.2.5 and 6.0) to a unified 7.0 version. However, we have a mass amount of users in both.

As we are not converting either one, we have to fill in users directly into version 7. Is there a script or REST API syntax or something I can use to take a list of users and import them into this new version without keying in each user one at a time?

4 comments
Comment actions Permalink
Official comment

Please use this script: https://github.com/JetBrains/youtrack-rest-python-library/tree/master/python/sync, you should run it like:

`python userTool.py srcBaseUrl srcLogin srcPasswd destBaseUrl destLogin destPasswd`
For users groups'import also with the users: 
`python userTool.py -g srcBaseUrl srcLogin srcPasswd destBaseUrl destLogin destPasswd`

 

Read more about our Python library: https://www.jetbrains.com/help/youtrack/incloud/2017.2/Python-Client-Library.html

Comment actions Permalink

Note: import of the group will take significant amount of time comparing to import of the users.

 

0
Comment actions Permalink

Thank you Liubov for the information.

What I was looking for actually was the ability to take a delimited file (.csv, .txt) set of user login names and import those, instead of doing an import from any of the previous YouTrack versions we have.

We have inconsistent username conventions being used, so we wanted to start fresh with a standard user convention if possible. If not, I will see what I can do about making this one work.

0
Comment actions Permalink

Unfortunately, the nly possible way to import users is through the Python library.

0

Please sign in to leave a comment.