User management API - GET all users
Lists all users of an account.
The request produces an application/json
payload.
GET |
|
Authentication
To execute this request, you need the Allow read access for identity resources (users and groups) (account-idm-read
) scope assigned to your token. To learn how to obtain and use it, see Authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
accountUuid | string | The ID of the required account. You can find the UUID on the Account > Account management API page, during creation of an OAuth client. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | UserListDto | Success. The response contains the list of users. |
Response body objects
The UserListDto
object
Element | Type | Description |
---|---|---|
count | number | The number of entries in the list. |
items | UsersDto[] | A list of the account's users. |
The UsersDto
object
Element | Type | Description |
---|---|---|
uid | string | The UUID of the user. |
string | The email address of the user. | |
name | string | The first name of the user. |
surname | string | The last name of the user. |
userStatus | string | The status of this user in Dynatrace:
|
emergencyContact | boolean | The user is ( |
userLoginMetadata | UserLoginMetaDataDto | - |
The UserLoginMetaDataDto
object
Element | Type | Description |
---|---|---|
successfulLoginCounter | number | The number of successful sign-ins. |
failedLoginCounter | number | The number of failed sign-ins. |
lastSuccessfulLogin | string | The date and time of the most recent successful sign-in in |
lastFailedLogin | string | The date and time of the most recent failed sign-in in |
createdAt | string | The date and time of user creation in |
updatedAt | string | The date and time of the most recent modification to the user in |
Response body JSON model
1{2 "count": 1,3 "items": [4 {5 "uid": "string",6 "email": "string",7 "name": "string",8 "surname": "string",9 "userStatus": "ACTIVE",10 "emergencyContact": true,11 "userLoginMetadata": {12 "successfulLoginCounter": 1,13 "failedLoginCounter": 1,14 "lastSuccessfulLogin": "string",15 "lastFailedLogin": "string",16 "createdAt": "string",17 "updatedAt": "string"18 }19 }20 ]21}
Example
In this example, the request lists all users of the 2b794097-8ad2-4b32-b923-0131da2eeddf account. The result is truncated to two entries.
Curl
1curl --request GET \2 --url 'https://api.dynatrace.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/users' \3 --header 'Authorization: Bearer abcdefjhij1234567890'
Request URL
1https://api.dynatrace.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/users
Response body
1{2 "count": 2,3 "items": [4 {5 "uid": "44fc26d0-ed1f-4fbd-96e8-5da7c192f9c1",6 "email": "john.smith@company.com",7 "name": "John",8 "surname": "Smith",9 "emergencyContact": true,10 "userStatus": "ACTIVE",11 "userLoginMetadata": {12 "successfulLoginCounter": 1260,13 "failedLoginCounter": 0,14 "lastSuccessfulLogin": "2020-03-11T03:01:00Z",15 "lastFailedLogin": null,16 "resetPasswordTokenSentAt": null,17 "lastSuccessfulBasicAuthentication": null,18 "createdAt": "2020-03-11T03:01:00Z",19 "updatedAt": "2020-03-11T03:01:00Z"20 }21 },22 {23 "uid": "20cc1c46-870e-48ca-ac40-9a8459cf6632",24 "email": "jane.brown@company.com",25 "name": "Jane",26 "surname": "Brown",27 "emergencyContact": false,28 "userStatus": "ACTIVE",29 "userLoginMetadata": {30 "successfulLoginCounter": 808,31 "failedLoginCounter": 0,32 "lastSuccessfulLogin": "2020-03-11T03:01:00Z",33 "lastFailedLogin": null,34 "resetPasswordTokenSentAt": null,35 "lastSuccessfulBasicAuthentication": null,36 "createdAt": "2020-03-11T03:01:00Z",37 "updatedAt": "2020-03-11T03:01:00Z"38 }39 }40 ]41}
Response code
200