Get Users
getUsers
Given a company ID (if no company is specified, the company of the authorized user will be used) and optionally an entity ID and entity type to filter on, this web service returns a list of User objects in alphabetical order by User ID. If filtration information (entityId and entityType) is specified, a subset of the company's users matching the criteria will be returned, otherwise all users in the company will be returned.
User[] getUsers(string companyId, string entityId, string entityType) throws WSException
- companyId: (optional) A string of maximum length 10 that specifies the unique company identifier.
- entityId: (optional) A string that indicates the unique identifier of the entity specified in the entityType field.
-
entityType: (optional) A character that indicates the type of entity specified in the entityId field for filtration. Valid values are:
Value
Description
Filtration Info
U
User ID
Returns user information for the specified user
A
Application ID
See Application Information for App ID valuesReturns a list of users authorized for the specified application
R
Role Name
Returns a list of users with the specified role name
null or blank
All Users
No filtration applied.
Returns a null string on exceptions; otherwise returns an array of User objects.
Authorization Requirements
The credentials supplied with this method call (as specified in the accompanying WS-Security header) must be authorized to the following application(s) and their associated role-based permissions.
Required Application Licenses
- Remote Integration
Required User Permissions
- Admin role (If requesting information about a user other than themselves.)
Customer integrators are authorized to their own company's data only.
Sample XML Request
Only the SOAP body is shown. To see a sample SOAP Envelope and Header, click here.
|
Sample XML Response
|
Exceptions
001 Unknown Error.
003 Company not authorized for integration.
004 User not authorized.
005 Company ID is invalid.
006 Entity Type is invalid.
007 Entity Id is invalid.
008 Company is not licensed for requested application.
009 No users found.