Delete user sessions of a given user

This request enables you to terminate all sessions of a specific user.

Endpoint

/api/cluster/v1/userSessions

Parameters

Parameter Type Description In Required
userId string

User ID (mandatory)

query optional

Response

Response code

Code Description
200

Success

400

Bad request. User id must be filled in.

404

User sessions not found

500

Operation failed

510

Failed to invalidate sessions

Response format

A successful request doesn't return any content.

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

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

Request URL

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

Response code

200