Get User Info
Use this API to get the user details.
Resource Informations
Name | Value |
---|---|
Requires authentication? | Yes |
Rate limited? | No |
Request
Request headers
Key | Value |
---|---|
Authorization | Bearer token |
Content-Type | application/json |
HTTP request URL for SSMS
GET https://{tenantId}.{hostname}/digitanium/v4/users/{userName}/profile
HTTP request URL for SHIFT
GET https://{hostname}/auth/realms/{tenantId}/v3_user/{userName}
note
API requests must be made over https. Calls made over plain http will fail.
Parameters
No parameter fields are required.
Request body
No request body fields are required.
Response
Field Name | Type | Description |
---|---|---|
message | String | Message explains result of the API call. Refer Response status Information for details. |
status | String | The status of the API call. Refer Response status Information for details. |
subSystem | Integer | subSystem categorizes the type of API that has been called. Refer Subsystem details for details. |
data | Array | List of all device details. Refer Data Representation for details. |
Sample Response
{
"message": "User info fetched successfully",
"status": "Success",
"subSystem": 5,
"data": {
"username": "createuser",
"id": "c70c9758-fd76-43a7-8b37-b21280c9369e",
"enabled": false,
"emailVerified": false,
"attributes": {
"firstName": [
null
],
"lastName": [
null
],
"email": [
null
],
"username": [
"createuser"
]
},
"requiredActions": [],
"admin": false
}
}
Data Representation
Field Name | Type | Description |
---|---|---|
username | String | Name of the user |
id | String | Unique system UUID, which will be assigned automatically |
firstName | String | First name of the user |
lastName | String | Last name of the user |
enabled | Boolean | Indicates whether the user is enabled or not. |
emailVerified | Boolean | True - Enable, False - Disable |
attributes | List | Based on the user requirement the user attributes can be updated. User can add any customized attribute in form of key value pair. |
requiredActions | List(String) | List the actions which need to be performed during initial login. Refer Required Actions to know the supported actions. |
admin | Boolean | If set to true the user has admin role mapped, else not. |
Response Status Information
Status Code | Status | Message |
---|---|---|
200 | Success | User info fetched successfully |
400 | BAD_REQUEST | UserID should not be null or empty |
401 | Unauthorized | HTTP 401 Unauthorized |
404 | USER_NOT_FOUND | User does not exist |