• Home
  • Dynatrace Managed
  • Cluster API
  • Cluster API v2
  • User management
  • Delete user sessions of a given user

Delete user sessions of a given user

This API call enables you to terminate all sessions of a specific 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/cluster/v2/userSessions

Parameters

ParameterTypeDescriptionInRequired
userIdstring

User ID (mandatory)

queryoptional

Response

Response codes

CodeDescription
200

Success

400

Bad request. User id must be filled in.

404

User sessions not found

500

Operation failed

510

Failed to invalidate sessions

Example

In this example, the request deletes all user sessions with user ID value user.name. The response code of 200 indicates that the deletion was successful.

Curl

bash
curl -X DELETE "https://myManaged.cluster.com/api/cluster/v2/userSessions?userId=user.name" -H "accept: */*"

Request URL

plaintext
https://myManaged.cluster.com/api/cluster/v2/userSessions?userId=user.name

Response code

200