[IMPORTANT] Please note that this site will be disabled on October 31. In it's place, the new JumpCloud Help Center is live! Check it out here!

Support Center

Linux User Import via Shell Script

You can auto-import your existing Linux users into JumpCloud via a script which leverages the JumpCloud APIs and the JumpCloud Commands tab to run it.

Once you've downloaded the script from Github, (it's called JC_UserImport.sh) you'll want to modify three things within it:
  1. Your API Key - used to access your JumpCloud account to identify users already added, and to add new users to it
  2. userAddEmailMap - a simple bash here-document that maps Linux user name to their email account for all users, which when they're found on one of your servers, you'd like to add that account to JumpCloud
  3. userIgnoreList - a list of user accounts on your servers that you do not want added to JumpCloud
Once the script is prepared, you can leverage JumpCloud Commands to run it against your systems. Next, look at the command results details for each server to see which users were automatically added, which already existed within JumpCloud, and which were found, but not in JumpCloud, or in either the userAddEmailMap or userIgnoreList.

You can run the script as many times as you like, modifying the userAddEmailMap or userIgnoreList as you go until all your users are imported.

Last Updated: Apr 13, 2017 02:08PM MDT

Related Articles
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found