We've written a Ruby script that you can use to import users on your own: import_users.rb
You'll want to pass a full-access API v2 access token, the requester email of the user making the change, and the path to your CSV file as command line arguments; here, an example command is shown:
import_users.rb -a tKvs3QDNi84Nl326Krdz -e email@example.com -f ./users.csv
The usage instructions for the tool can be found by executing the script with a
import_users.rb -h Usage: import_users.rb [options] -a, --access-token [String] Access Token -e, --requester-email [String] Requester Email -f, --csv-path [String] Path to CSV file
The CSV file can be named anything - you'll just need to make sure the path is correct.
Below is the required format for the CSV file. The email address and phone number will be set up as an immediate notification rule for the user (for both phone calls and SMS). The user's role can either be
read_only_user (known as Stakeholder user), and defaults to user if not specified. You can find additional information on user roles and permissions here.
The CSV file should be in format
name,email,role,title,country code,phone number,team 1;team 2;team 3. There's no need to include a header in the file and the title and teams are optional. If the user is on multiple teams, they should be separated by a semicolon. Here's a sample CSV:
Joe User,firstname.lastname@example.org,user,Operations Engineer,1,5555555555,Engineering;Operations Bob Dobbs,email@example.com,admin,Director of Engineering,86,15555555554,Engineering;Operations;Leadership
Download the attached template CSV file, populate it with your users' data, and send the file to our support team.
As with running the the Ruby script yourself, you can only include one phone number in addition to email.