You must use the searchUsers operation to search for all the users in the system.
This section walks you through the following topics for searching the users:
The following table lists the elements of the searchUsers message:
|
Element |
Mandatory |
Description |
|---|---|---|
|
orgPattern |
No |
The pattern that is used to search the organizations. For example, *ac pattern will search for users in the following 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 expression that is used to search for users. For example, if you search for *m, then the following user details will be fetched:
|
|
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. Following are the supported values:
|
|
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 that is 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. Following are the supported values:
|
|
account/accountIDAttribute |
No |
The alternate identifier that is 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 that is used to store the user information. For example, First Name or Email Address. |
|
clientTxId |
No |
The unique transaction identifier that the calling application can include. This identifier helps in tracking the related transactions. |
To search for 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 return elements of searchUsersResponse are the same as those for retrieveUserResponse. See the table containing information about the retrieveUserResponse elements for more information on the user details that is returned for a successful transaction. See appendix, "Error Codes" if there are any errors.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|