User.py Admin Tool
From DataSync Suite Wiki
Contents |
User.py
The user.py admin tool performs all user provisioning tasks for the DataSync Suite, including creating new accounts, deleting old accounts, changing passwords, listing current accounts on your domain, and adding the users to different programs. Each operation is invoked through command-line options.
The admin tool user.py is going to be located in /opt/datasync-suite/suitepy/suitepy/.
To run the program type /opt/datasync-suite/python/bin/python user.py
Objects
The following objects use this syntax:
addfile
ls
rm
cat
add
passwd
The following example would change the password of demo@datasyncintra.net
|
/opt/datasync-suite/python/bin/python user.py passwd demo@datasyncintra.net |
|
Objects |
Syntax, Example, and Notes |
|
addfile |
Adds a .csv file of usernames, passwords, and their associated applications to a domain for mass user setup |
|
ls |
Lists all the users on a domain |
|
rm |
Removes a user from the domain |
|
cat |
Lists a individual user's information |
|
add |
Adds a user to a domain |
|
passwd |
Randomly generates a new password |
The next set of commands are examples of what a user would run to use the different options.
|
Command |
Outcome |
user.py addfile filename.csv domain **See Below** |
Import all the users in the .csv into a specific domain. |
|
user.py ls domain.com |
Lists all the users in that domain |
|
user.py rm E-mail |
Removes the user |
|
user.py cat E-mail |
Displays information about the user |
|
user.py add |
Will start a utility to add a new user |
|
user.py passwd E-mail |
Will assign a user a new randomly generated password |
**NOTE**
The way the users are listed in the .csv from left to right must match up with the order you add information with the utility**
The the format for .csv is as follows:
Also: If you do not want a user added added to an application leave the column blank
Column fields
(From Left to Right)
firstName
lastName
userName
password
joomla
sugar
knowledgeTree
zimbra
You will have 9 columns total
