This command file sets various properties for the new users created in Example Command file 1: new users and groups. As before, the administrator running Account Import has a management group set to the top‑level Users group.
Note: This command file sets the properties for two new users, but command files can equally be used to set the properties of existing users.
Example Command File
1 |
fullname,unipraxis\lyndasteel,"Lynda Steel" |
2 |
fullname,unipraxis\spencerrimmel,"Spencer Rimmel" |
3 |
setrole,unipraxis\lyndasteel,manager |
4 |
setrole,unipraxis\spencerrimmel,3 |
5 |
// Set the password and management group |
6 |
password,unipraxis\spencerrimmel,rimmel |
7 |
password,unipraxis\lyndasteel,steel |
8 |
managegroup,unipraxis\lyndasteel,Corporate |
9 |
addmgmtgroup,unipraxis\lyndasteel,Sales |
10 |
emailaddress,unipraxis\spencerrimmel,srimmel@unipraxis.com |
11 |
attribute1,unipraxis\spencerrimmel,131026 |
12 |
attribute2,unipraxis\spencerrimmel,0182 3367 0832 |
13 |
attribute3,unipraxis\spencerrimmel,Phoebe Rimmel |
Resulting Actions@
Lines 1-2: Sets the full names for the two new users.
Lines 3-4: Sets the user roles. Note that 3 corresponds to ‘user’.
Line 5: Adds a comment
Lines 6-7: Sets the management groups for the named user.
Lines 8-9: Moves existing users into the Directors group. You do not specify the users’ current group.
Lines 10: Adds an email address.
Lines 11-13: Imports values for user attributes. These correspond to the first three attributes listed in the Options dialog.
Import Results for Example Command File 2
New user: |
Lynda Steel |
Spencer Rimmel |
Role: |
Manager |
User |
Temporary password: |
Steel |
Rimmel |
Management groups |
Users\Corporate |
None |
Email address: |
Not specified |
srimmel@unipraxis.com |
User attributes: |
Not specified |
Attribute 1 (Employee ID): 131026 Attribute 2 (Home telephone): 0182 3367 0832 Attribute 3 (Emergency contact): Phoebe Rimmel |
Copyright © 2014 CA.
All rights reserved.
|
|