get_access_policy
get_access_policy
Section titled “get_access_policy”Fetch one access policy’s full record by ID.
Side effects: None (read-only).
Same shape as one entry from list_access_policies. Useful when
auditing why a specific user can or cannot badge into a specific door
at a specific time.
Example
Section titled “Example”get_access_policy(policy_id="pol...", controller="default")Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
policy_id | string | yes | — | Access policy id from list_access_policies. |
controller | string | no | ”default” | Name of the UniFi controller to target. |