session_logoff
Force log off Horizon sessions by session IDs or user, with a preview mode to check impact before confirming.
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). confirm=False (default) returns a preview stating the blast radius — session count and affected user names — without acting; re-run with confirm=True to apply. Audited.
Args: session_ids: Session ids to log off (from session_list). user: Log off all sessions of this AD user (substring match); refuses if none match. confirm: False previews; True logs off. target: Horizon target from config.yaml; omit to use the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | ||
| target | No | ||
| confirm | No | ||
| session_ids | No |