session_logoff
Force-logoff VMware Horizon sessions by session ID or user, previewing affected sessions for confirmation to prevent accidental disconnects.
Instructions
[WRITE] Force-logoff Horizon session(s) — kicks the user, triggers profile write-back.
Identify targets by explicit session_ids OR by user (all of that user's sessions). A bare call returns blast_radius — session ids, count and affected users — and logs off nothing; confirm=True logs off. 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 | Log off all sessions of this AD user (substring match); refuses if none 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 logs off. | |
| session_ids | No | Session ids to log off (from session_list). |