• Home
  • Dynatrace Managed
  • Cluster API
  • Cluster API v1
  • Users v1
  • Get user

Get user

This API call retrieves information on a specific cluster user.

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

ParameterTypeDescriptionInRequired
idstring

User ID path parameter. Missing or empty values will return a 'Bad Request'

pathrequired

Response

Response codes

CodeTypeDescription
200UserConfig

Success

400

No ID information received for the get-user request

404

Not found

Response body objects

The UserConfig object

The configuration of the user.

ElementTypeDescription
idstring

User ID

emailstring

User's email address

firstNamestring

User's first name

lastNamestring

User's last name

passwordClearTextstring

User's password in a clear text; used only to set initial password

groupsstring[]

List of user's user group IDs.

Response body JSON model

json
{ "id": "string", "email": "string", "firstName": "string", "lastName": "string", "passwordClearText": "string", "groups": [ "string" ] }

Example

In this example, you retrieve john.wicked user details.

Curl

bash
curl -X GET "https://myManaged.cluster.com/api/v1.0/onpremise/users/john.wicked" -H "accept: application/json"

Request URL

plaintext
https://mymanaged.cluster.com/api/v1.0/onpremise/users/john.wicked

Response body

json
{ "id": "john.wicked", "email": "john.wicked@company.com", "firstName": "John", "lastName": "Wicked", "passwordClearText": null, "groups": [ "admin" ] }

Response code

200