Get users
This page will soon be available only on the dedicated Dynatrace Managed Documentation site. Update your bookmarks.
This API call retrieves a list of cluster users that currently exist in cluster.
Authentication
To execute this request, you need the Service Provider API (ServiceProviderAPI
) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
Endpoint
/api/v1.0/onpremise/users
Parameter
The request doesn't provide any configurable parameters.
Response
Response codes
Code | Type | Description |
---|---|---|
200 | UserConfig[] | Success |
Response body objects
The ResponseBody
object
The UserConfig
object
The configuration of the user.
Element | Type | Description |
---|---|---|
string | User's email address | |
firstName | string | User's first name |
groups | string[] | List of user's user group IDs. |
id | string | User ID |
lastName | string | User's last name |
passwordClearText | string | User's password in a clear text; used only to set initial password |
Response body JSON model
1[2 {3 "email": "string",4 "firstName": "string",5 "groups": [6 "string"7 ],8 "id": "string",9 "lastName": "string",10 "passwordClearText": "string"11 }12]
Example
In this example, you retrieve all users that currently exist in your Dynatrace Managed cluster. For each user, you get a detailed information and groups membership.
Curl
1curl -X GET "https://myManaged.cluster.com/api/v1.0/onpremise/users" -H "accept: application/json"
Request URL
1https://myManaged.cluster.com/api/v1.0/onpremise/users
Response body
1[2 {3 "id": "john.wicked",4 "email": "john.wicked@company.com",5 "firstName": "John",6 "lastName": "Wicked",7 "passwordClearText": null,8 "groups": [9 "owners",10 "users"11 ]12 },13 {14 "id": "anne.brown",15 "email": "anne.brown@company.com",16 "firstName": "Anne",17 "lastName": "Brown",18 "passwordClearText": null,19 "groups": ["users"]20 }21]
Response code
200