get_access_history
Retrieve historical access grant/deny records with optional filters by card number or hot stamp, and enrich results with person names and reader descriptions.
Instructions
Returns historical access (grant/deny) records for optional filters (wraps NBAPI GetAccessHistory). Identifies a person by ENCODEDNUM/HOTSTAMP, not PERSONID — GetAccessHistory has no PERSONID parameter. Set RESOLVENAMES: true to enrich each returned record with the badge-holder's FIRSTNAME/LASTNAME/FULLNAME/NOTES (default false — off); enabling it costs one extra GetPerson call per distinct person found in the result, which is why it is opt-in rather than on by default. RESOLVEDESCRIPTIONS defaults to true — the only default-on optional boolean in this codebase (an inverted, opt-out default, unlike RESOLVENAMES/dryRun-style flags elsewhere): each returned record is enriched with the reader's human-readable READERDESCRIPTION via one GetReaders full-table fetch per call (not per record, since the reader table is small and fixed-size); set RESOLVEDESCRIPTIONS: false to skip it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ORDER | No | Optional. Sort order for returned records. | |
| HOTSTAMP | No | Optional. Restrict results to this hot-stamp number. | |
| AFTERLOGID | No | Optional. Return records strictly after this LOGID. | |
| CARDFORMAT | No | Optional. Card format of ENCODEDNUM/HOTSTAMP. | |
| ENCODEDNUM | No | Optional. Restrict results to this encoded card number. | |
| MAXRECORDS | No | Optional. Maximum number of records to return. | |
| STARTLOGID | No | Optional. Begin returning records at this LOGID. | |
| RESOLVENAMES | No | Optional (default false). Enrich each returned record with the badge-holder's FIRSTNAME/LASTNAME/FULLNAME/NOTES via one extra GetPerson call per distinct person found in the result. | |
| RESOLVEDESCRIPTIONS | No | Optional (default true — on by default; the inverse of this codebase's usual optional-boolean default). Enrich each returned record with the reader's human-readable READERDESCRIPTION via one GetReaders full-table fetch per call (not per record). Set to false to skip it. |