List Admin Users
List Admin Users will return a list of admin users.
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/admin/users
HTTP request URL for SHIFT
GET https://{hostname}/auth/realms/{tenantId}/v3_user/adminusers
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 | List | User details |
username | String | Unique username of the user |
id | String | Autogenerated UUID. |
firstName | String | First name of the user |
lastName | String | Last name of the user |
String | Unique email corresponding to the user (Example: testuser@mail.com) | |
enabled | Boolean | If true the user is enabled, else disabled. Disabled user cannot login to mID. |
emailVerified | Boolean | If true indicates that the user email id has been verified, else unverified. |
attributes | List | Additional informations of the user (Example: birthdate) |
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. |
Sample Response
{
"message": "Admin users fetched successfully",
"status": "Success",
"subSystem": 5,
"data": [
{
"username": "test",
"id": "2393cb6f-64e6-49db-8663-56ead7fb5db7",
"email": "testuser@email.com",
"firstName": "first4",
"lastName": "last6",
"enabled": true,
"emailVerified": false,
"attributes": {},
"requiredActions": [],
"admin": false
},
{
"username": "testuserdemo",
"id": "2393cb6f-64e6-49db-8663-56ead7fb5db7",
"email": "examplenew@email.com",
"firstName": "Foo",
"lastName": "Bar",
"enabled": true,
"emailVerified": false,
"attributes": {
"digitaniumUserIdOnboardingType": [
"onscreen"
],
{
"username": "umaadmin",
"id": "2393cb6f-64e6-49db-8663-56ead7fb5db7",
"email": "example@email.com",
"firstName": "first4",
"lastName": "last6",
"enabled": true,
"emailVerified": false,
"attributes": {},
"requiredActions": [],
"admin": false
}
]
}
Response Status Information
Status Code | Status | Message |
---|---|---|
200 | Success | Admin users fetched successfully |
401 | Unauthorized | HTTP 401 Unauthorized |
403 | FORBIDDEN | Failed to get user |