entitlement_add
Grant desktop-pool access to AD users/groups after previewing the blast radius.
Instructions
[WRITE] Grant desktop-pool access to AD user/group SID(s).
Get SIDs from ad_user_search. A bare call returns blast_radius (pool identity, which principals are already entitled and which are new) and grants nothing; confirm=True grants. Refused when the pool's current entitlements cannot be read. 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 |
|---|---|---|---|
| target | No | Horizon target from config.yaml; omit to use the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True grants. | |
| pool_id | Yes | The desktop-pool id (from pool_list). | |
| ad_user_or_group_ids | Yes | AD SIDs to entitle (from ad_user_search). |