Get information on the authentication user
- Last Updated: February 2, 2024
- 2 minute read
- Hybrid Data Pipeline
- Version 5.0
- Documentation
Purpose
Returns information on an authentication user
URL
https://<myserver>:<port>/api/admin/users/authUserName/{authUserName}
When the details query parameter is set to true, the response
payload will include the tenantName property.
https://<myserver>:<port>/api/admin/users/authUserName/{authUserName}?details=true
Method
GET
URL Parameters
<myserver> is the hostname or IP address of the machine hosting the Hybrid Data Pipeline server for a non-load balancer deployment, or the machine hosting the load balancer for a load balancer deployment. For a non-load balancer deployment, <port> is the port number specified as the Server Access Port during deployment. For a load balancer deployment, <port> must be either 80 for http or 443 for https. Whenever port 80 or 443 are used, it is not necessary to include the port number in the URL.
The URL parameter "authUserName" described in the following table is required.
| Parameter | Description | Valid Values |
|---|---|---|
| "authUserName" | The name of the authentication user. | A string where the string specifies a user name persisted by the authentication service. The maximum length is 128 characters. |
Response Definition
The response takes the following format. The properties of the response are described in the table that follows.
{
"users": [
{
"id": user_account_id,
"userName": "user_account_name",
"tenantId": tenant_id,
"tenantName": "tenant_name",
"authUsername": "authentication_user_name",
"authServiceIds": [integer, integer, ...],
"statusInfo": {status_information},
"permissions": {permissions}
}
]
}
| Property | Description | Valid Values |
|---|---|---|
| "id" | The ID of the user account. | The ID is auto-generated when the user account is created and cannot be changed. |
| "userName" | The name of the user account. | The maximum length is 128 characters. |
| "tenantId" | The ID of the tenant to which the user belongs. | 1 | x
|
| "tenantName" | The name of the tenant to which the user
belongs. Note: Included when the details query parameter is set
to true ( ?details=true). |
A string that specifies the name of the tenant. |
| "authUserName" | The name of the authentication user | A string where the string specifies a user name persisted by the authentication service. The maximum length is 128 characters. |
| "authServiceIds" | A list of authentication services which the authentication user can authenticate against | A comma separated list of authentication service
IDs. See authenticationInfo Object for details. |
| "statusInfo" | The status of the user account defined by the
status property and additional
properties associated with an account lockout policy |
See statusInfo Object for details. |
| "permissions" | Permissions associated with the user account in terms of the role(s) and permissions set explicitly on the account. User account permissions are the sum of the permissions on associated role(s) and permissions set explicitly on the account. | See permissions Object for details. |
Sample Server Success Response
Status code: 200
Successful response
{
"users": [
{
"id": 3,
"userName": "testuser",
"tenantId": 1,
"authUsername": "user_external",
"authServiceIds": [
2
],
"statusInfo": {
"status": 1,
"accountLocked": false
},
"permissions": {
"roles": [2]
}
}
]
}
Sample Server Failure Response
{
"error":{
"code":222207916,
"message":{
"lang":"en-US",
"value":"There is no User with that id: 123."
}
}
}
Authentication
Basic Authentication using Login ID and Password
Authorization
The user must have the Administrator (12) permission, or the ViewUsers (14) permission and administrative access on the tenant.