audit_expiring_credentials
audit_expiring_credentials
Section titled “audit_expiring_credentials”Return credentials expiring within days_ahead days.
Side effects: None (read-only).
Iterates list_credentials client-side and filters to those whose
expires_at falls inside the window [now, now + days_ahead].
Credentials with no expires_at (typical for mobile credentials)
are excluded. Each entry includes days_until_expiry so the LLM
can sort and summarise without re-doing the math.
Example
Section titled “Example”audit_expiring_credentials(days_ahead=14)Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
days_ahead | integer | no | 30 | Look-ahead window in days. Defaults to 30. |
credential_type | string | no | "" | Optional "nfc", "pin", or "mobile" filter. Empty (default) returns every type. |
controller | string | no | ”default” | Name of the UniFi controller to target. |