Get User Details by Customer ID and User ID
This API endpoint retrieves the details of a specific user associated with a given customer ID. The requesting user must have appropriate access permissions.
Endpoint Information
URL:
https://account.testinium.com/account/api/v1/customers/{customerId}/users/{userId}
Method:
GET
Authentication: Required (
Bearer Token
)Header: Required (
current-company-id: <your_company_id>
)
Path Parameters
customerId
Long
Yes
The ID of the customer.
userId
Long
Yes
The ID of the user within the given customer.
Response
The response contains detailed information about the user.
Response Fields
entityId
Long
The unique ID of the user.
username
String
The username of the user.
email
String
The user's email address.
enabled
Boolean
Whether the user account is active.
accountNonExpired
Boolean
Whether the account is expired.
accountNonLocked
Boolean
Whether the account is locked.
credentialNonExpired
Boolean
Whether credentials are expired.
createdDate
Long
The timestamp when the user was created.
customer
Long
The ID of the customer associated with the user.
authorities
Array
The list of roles assigned to the user.
Error Codes
400
INVALID_REQUEST
The request was malformed or contained errors.
403
UNAUTHORIZED_ACCESS
The user does not have permission to access data.
404
USER_NOT_FOUND
No user was found for the specified userId
.
500
INTERNAL_SERVER_ERROR
An unexpected error occurred on the server side.
Example Request
Last updated