Service user management API - DELETE a service user

  • Latest Dynatrace
  • Reference
  • Published Dec 04, 2025

Deletes a service user in an account.

DELETE

https://api.dynatrace.com/iam/v1/accounts/{accountUuid}/service-users/{userUuid}

Authentication

To execute this request, you need the Allow write access for identity resources (users and groups) (account-idm-write) scope assigned to your token. To learn how to obtain and use it, see OAuth clients.

Parameters

ParameterTypeDescriptionInRequired
accountUuidstring

The ID of the required account.

You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.

pathRequired
userUuidstring

The UUID of the required user.

pathRequired

Response

Response codes

CodeDescription
200

Success. The user has been deleted. Response doesn't have a body.

Example

In this example, the request deletes a service user created in the POST request example for the account with accountUuid 2b794097-8ad2-4b32-b923-0131da2eeddf.

Curl

curl -X 'DELETE' \
'https://api-dev.internal.dynatracelabs.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/service-users/e2dbb9d3-1a2b-4cde-9f01-23456789abcd' \
-H 'accept: */*' \
-H 'Authorization: Bearer eywedGciOiJFUzI1NiIsInR7cCI6IkpCDVIsImtpZCI6IjEifQ'

Request URL

https://api.dynatrace.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/service-users/e2dbb9d3-1a2b-4cde-9f01-23456789abcd

Response code

200