You could use the /opt/quest/bin/vastool load command to supply a list of users to a group. vastool load will read from a file if the -f option is specified, otherwise it will read from stdin.
Usage: vastool load [-lxre] [-f file] [-c container] [-p password]
[-t grouptype] [-s samaccpre] {command}
Commands:
users
groups
-f file Path to the import file in /etc/passwd or /etc/group format
-c container DN of the container to create the principals in
-l Log user and group errors to a file
-p password Default new password for imported users
-x Don't make users change password during initial login
-r Don't update vasd caches after load is finished
-e Unix enable existing users and groups -- don't create them
-t grouptype Created group type: "universal","domain_local","global"(Default)
-s samaccpre prefix sAMAccountName of new group with samaccpre
Here is an example from our lab:
# vastool list group load-group
load-group:VAS:4111:
# more load.txt
load-group:VAS:4111:ej@cs-gloria.com,jandrews@cs-gloria.com
# vastool -u Administrator load-group -f load.txt groups
Password for Administrator@cs-gloria.com:
Group: load already exists, only adding new users.
# vastool flush
vasd stopped
Flushing auth cache: OK
Loading users cache: .... OK
Loading groups cache: .... OK
Loading Domain Info cache: ... OK
vasd started
# vastool list group load-group
load:VAS:4111:jandrews@CS-Gloria.com,ej@CS-Gloria.com
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center