UserBulkOperations
From CLAWSWiki
Bulk operations allow you to script many additions, modifications and deletions in a row. You first set up a text file on your local computer. The text file contains comma delimited fields with one operation per line. Trailing commas are never needed but will not hurt. When you have a file ready, type the filename into the text box on the bulk operations' page. You can also click browse and select the text file. Finally, you click one of the operation buttons: Add, Modify, or Delete. Each operation requires a very specific text file.
Not all fields are required. If you do not have the information, just put the comma and continue. For the check box fields (marked (1) below) you should put a 1 if you want it checked. Be VERY careful with your commas.
Add
Each line in a bulk add text file has the following fields:
- ritid
- username
- password
- first name
- middle name
- last name
- account type
- program code
- department
- secret word
- expiration date
- account status
- block quota
- file quota
- calendar user (1)
- send notify (1)
- restricted (1)
- special (1)
- notes
This example will create a non-restricted student account:
999999999,zzz9999,zzz,z,zzz,zzz9999@osfmail.rit.edu,student,icsg,,,,active,9,9
Modify
Very similar to Add but there is an extra field at the end that is only used for renaming the account to a different username. Make sure you also rename the email address when you change the username. Also, there is a real name field after email. Please note that if you change any part of the name i.e. first or last, you should also type in the new real name field as this is not done for you.
You cannot remove field information in a bulk modify as any blank fields are ignored. Please use normal modify routines to do that. Each line in a bulk modify text file has the following fields:
- ritid
- username
- password
- password reset (1)
- first name
- middle name
- last name
- real name
- account type
- program code
- department
- secret word
- expiration date
- account status
- block quota
- file quota
- calendar user (1)
- send notify (1)
- restricted (1)
- special (1)
- notes
- new username
This example will change the first name of the user zzz9999 to Joe:
,zzz9999,,,Joe
This example will rename zzz9999 to zzz9998 and change his email address: (yes, you need all the commas)
,zzz9999,,,,,,zzz9998@ofsmail.rit.edu,,,,,,,,,,,,,,,zzz9998
Delete
The delete file is just a list of usernames. One username per line.
This example will delete the users zzz9999 and zzz9998:
zzz9999 zzz9998
