This API call creates a cluster user account.
The ServiceProviderAPI
(Service Provider API) Api-Token scope is required to get the default realm password policy configuration using the Dynatrace API. With this API method, you can preset user's password by passing passwordClearText
value. This is allowed only if a specific Feature Flag is enabled. To do this, Please contact a Dynatrace product expert via live chat within your environment..
/api/v1.0/onpremise/users
UserConfig
objectThe configuration of the user.
User's email address
User's first name
List of user's user group IDs.
User ID
User's last name
User's password in a clear text; used only to set initial password
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"email": "string","firstName": "string","groups": ["string"],"id": "string","lastName": "string","passwordClearText": "string"}
Operation failed. The input is invalid. Possible reasons:
Operation forbidden - users and groups are fully managed via LDAP or SSO
Unacceptable request
Couldn't create user
User already exists
Email address already registered
UserConfig
objectThe configuration of the user.
User's email address
User's first name
List of user's user group IDs.
User ID
User's last name
User's password in a clear text; used only to set initial password
{"email": "string","firstName": "string","groups": ["string"],"id": "string","lastName": "string","passwordClearText": "string"}
In this example, you add john.wicked
user and assign admins
group. As a response, you will receive back persisted state of the entity.
curl -X PUT "https://myManaged.cluster.com/api/v1.0/onpremise/users" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"id\":\"john.wicked\",\"email\":\"john.wicked@company.com\",\"firstName\":\"John\",\"lastName\":\"Wicked\",\"passwordClearText\":null,\"groups\":[\"admin\"]}"
https://myManaged.cluster.com/api/v1.0/onpremise/users
{"id": "john.wicked","email": "john.wicked@company.com","firstName": "John","lastName": "Wicked","passwordClearText": null,"groups": ["admin"]}
200