You must use the searchUsers operation to search for all users in the system.
This section walks you through the following steps for searching the users:
The following table lists the elements of the searchUsers message.
|
Element |
Mandatory |
Description |
|---|---|---|
|
orgPattern |
No |
The pattern used to search the organizations. |
|
orgName |
No |
The name of the organization to which the user belongs. Note: If the organization name is not passed, then the Default Organization is used for the operation. |
|
searchExpression |
Yes |
The search expression to use to search for users. |
|
count |
No |
If the search result exceeds this value, then only the search results equal to this value are fetched. |
|
filter/includeImage |
No |
The flag to indicate whether the user image has to be retrieved or not. Supported values are:
|
|
filter/includeAccounts |
No |
The flag to indicate whether the user accounts have to be retrieved or not. Supported values are:
|
|
filter/deepSearch |
No |
The flag to indicate whether the user must be searched based on more than one parameter. Supported values are:
|
|
status |
No |
The status of the user:
|
|
account/accountType |
Yes
Only if the account element is defined. |
The attribute that qualifies the account ID and provides additional context about the usage of the account ID. |
|
account/accountID |
No |
The alternate identifier used to identify the user in addition to the user name. The account ID is also known as account. |
|
account/accountStatus |
No |
The status of the account:
|
|
account/accountIDAttribute |
No |
The alternate identifier used to identify the user in the system. Note: You cannot pass more than three account ID attributes for a user. |
|
account/dateCreated |
No |
The timestamp when the account ID was created. |
|
account/dateModified |
No |
The timestamp when the account ID was last modified. |
|
account/accountCustomAttribute |
No |
The additional account information that you want to pass as a name-value pair.
|
|
RepositoryUserAttributes/attributeName |
No |
The name of the user attribute used to store the user information. For example, First Name or Email Address. |
|
clientTxId |
No |
The unique transaction identifier that your calling application can include. This identifier helps in tracking the related transactions. |
To search users:
This operation returns the searchUsersResponse message that includes the transaction identifier, authentication token, and user details. See the following section for more information on the response message.
The response message, searchUsersResponse, returns the transaction identifier and the authentication token in the SOAP envelope header. The SOAP body includes the user details and status for a successful transaction, and the Fault response for an error condition.
The elements returned for searchUsersResponse are the same as those for retrieveUserResponse. Refer to appendix, "Exceptions and Error Codes" if there are any errors.
|
Copyright © 2013 CA.
All rights reserved.
|
|