session_disconnect
Disconnect VMware Horizon sessions while preserving state, allowing users to reconnect. Preview affected sessions, then confirm to proceed.
Instructions
[WRITE] Disconnect Horizon session(s) — state preserved, the user can reconnect.
Less disruptive than logoff. Identify by session_ids OR user. A bare call returns blast_radius (session ids, count, affected users) and changes nothing; confirm=True disconnects. A session whose user cannot be read is refused. Show blast_radius to the user and wait for their decision. Do not set confirm=True on your own because the user asked for this earlier: they have not seen the blast radius yet. Audited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Disconnect all sessions of this AD user (substring match). | |
| target | No | Horizon target from config.yaml; omit to use the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True disconnects. | |
| session_ids | No | Session ids to disconnect. |