PwsGetUserList
Overview
This web service retrieves a list of user summary records (PwsResourceSummary), based on specified search criteria. You can specify which users to retrieve either by specifying a set of search criteria, or by specifying a specific user to retrieve (PwsUserRef).
Request Format
- PwsGetUserList
- serviceRequest: PwsGetUserListRq
- RequestId: Int32
- SessionTicket: String
- IncludeInactiveFlag: Boolean
- LastUpdatedSinceTimestamp: DateTime
- MaxRowsToReturn: Int32
- QueryString: String
- UserIdentity: PwsUserRef
- serviceRequest: PwsGetUserListRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
Int32 | No | Click here for more information. | 1 | ||
String | Yes | Click here for more information. | AaoSuE89vJzjNFnsXZNioA== | ||
IncludeInactiveFlag | Boolean | Yes | false | If set to 'true', inactive users will be included in the results. Otherwise, only active users will be returned. This flag is disregarded if a user is specified in UserIdentity. | true |
LastUpdatedSinceTimestamp | DateTime | No | If set, only users that have been updated since this date will be returned. This value is disregarded if a user is specified in UserIdentity. | 2018-10-20 | |
MaxRowsToReturn | Int32 | No | The maximum number of users to be retrieved. This value is disregarded if a user is specified in UserIdentity. | 5 | |
String | No | A search string to narrow down the results. A user will be included in the results if the search string matches the user display name or user reference system id / employee id as well as the other specified criteria. This value is disregarded if a user is specified in UserIdentity. | |||
UserIdentity | No | If specified, this identifies a specific user to be retrieved. All other criteria is disregarded if a user is explicitly requested. |
Request Usage Example(s)
Response Format
- PwsGetUserListResponse
- PwsGetUserListResult: PwsGetUserListRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- Users: PwsUserSummaryElement[]
- PwsGetUserListResult: PwsGetUserListRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
Int32 | Click here for more information. | 1Â | |
Status | Click here for more information. | Ok  | |
DateTime | Click here for more information. | 2018-01-29T19:19:48.2062214ZÂ | |
Users | The user summary records that were fetched by the service. |
Response Usage Example(s)
PwsGetUserList - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
50024 | EntityNotFound | Entity PwsUserRef was not found. |
50045 | ViewPermissionDenied | You do not have permission to view this item. |
57813 | PermissionLimitedToClientUsers | User permission is limited to client users. |