Skip to content

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.

audit_expiring_credentials(days_ahead=14)
ParameterTypeRequiredDefaultDescription
days_aheadintegerno30Look-ahead window in days. Defaults to 30.
credential_typestringno""Optional "nfc", "pin", or "mobile" filter. Empty (default) returns every type.
controllerstringno”default”Name of the UniFi controller to target.