Kaspersky Next XDR Expert

Viewing token bearer information

GET /xdr/api/v2.1/kuma/users/whoami

Response

The response returns the superior role of all the roles assigned to the user.

HTTP code: 200

Format: JSON

type Tenant struct { ID string `json:"id"` Name string `json:"name"` } type Role struct { ID string `json:"id"` Name string `json:"name"` Tenants []Tenant `json:"tenants"` } type Response struct { ID string `json:"id"` Name string `json:"name"` Login string `json:"login"` Email string `json:"email"` Roles []Role `json:"roles"` }