The commadmin user search command obtains all the directory properties associated with a single user. To obtain all the directory properties for multiple users, use the -i option. Only active users are displayed after a search.
commadmin user search -D login -n domain -w password [-d domain] [-E string] [-F string] [-h] [-?] [-i inputfile] [-L string] [-l string] [-p AM port] [-s] [-S service] [-t Search Template] [-v] [-V] [-X AM host]
The following options are mandatory:
Option |
Description |
---|---|
-D login |
The user ID of the user with permission to execute this command. |
-n domain |
The domain of the user specified with the -D option. |
-w password |
The password of the user specified with the -D option. |
The following options are non-mandatory:
Option |
Description |
---|---|
-d domain |
The domain of the user. The user is searched only in the specified domain. If -d is not specified, all domains are considered for the search. |
-E string |
Searches for user’s mail address. The wildcard operator (*) may be used within any part of string. |
-F string |
Searches for user’s first name. The wildcard operator (*) may be used within any part of string. |
-h, -? |
Prints command usage syntax. |
-i inputfile |
Reads the command information from a file instead of the command line. |
-L string |
Searches for user’s last name. The wildcard operator (*) may be used within any part of string. |
-l string |
Searches for user’s login name. The wildcard operator (*) may be used within any part of string. |
-p AM port |
Use this option to specify an alternate TCP port where the Access Manager is listening. If not specified, the default AM port is used, or Port 80 is used if no default was configured at install time. |
-s |
Use SSL (Secure Socket Layer) to connect to the Access Manager. |
-S service |
Specifies the services to match in the user search. services can have the value of a single service or multiple services. The valid service values are mail and cal. These values are case-insensitive. The list of services is separated by the comma (,) delimiter. For Example: -S mail,cal |
-t Search template |
Specifies the name of the search templates to be used instead of the default search templates. This is an entry in the directory that defines the filter for the search. Only active users are searched for. |
-v |
Enable debugging output. |
-V |
Prints information about the utility and its version. |
-X AM host |
Specifies the host on which the Access Manager is running. If not specified, the default AM host is used, or the localhost if no default was configured at install time. |
The following example searches for users in the varrius.com domain:
commadmin user search -D chris -w bolton -d varrius.com -n sesta.com |