Hello.  New Zenoss user, first post.   [Shocked]

We're rolling out Zenoss to my company.
I see in the manual how to Dump and Load Devices Using XML Lists
http://www.zenoss.com/community/docs/zenoss-guide/2.1.1/ch09s18.html

Has anyone found a way to load ~500 user accounts using XML lists?
Or another way to script the adding of users?
Essentially I want to add many accounts with ZenUser (minimal) rights.
Zenoss is configured here to read account credentials from LDAP (Active Directory) once they are added... so all I have to do is add account UIDs and email addresses, I believe. I'd like to script that.

I've used the following script to add users in the past. It is basic and assumes each line in the user_file.txt to be "username,password,role" where role is ZenUser or ZenManager.

zendmd << EOF
user_file = open('user_file.txt', 'r')
for line in user_file:
    username, password, role = line.rstrip().split(',')
    dmd.ZenUsers.manage_addUser(username, password, (role,))

commit()
EOF
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to