get_card_access_details
Retrieve access details for a specific card using its encoded number and card format. Optionally include the card owner's name fields and human-readable reader descriptions.
Instructions
Returns card/credential access details for a given card (wraps NBAPI GetCardAccessDetails). Identifies the card by ENCODEDNUM + CARDFORMAT, not PERSONID — GetCardAccessDetails has no PERSONID parameter. RESOLVEDESCRIPTIONS defaults to true — an inverted, opt-out default (unlike most optional booleans in this codebase): each returned ACCESS record is enriched with the reader's human-readable READERDESCRIPTION via one GetReaders full-table fetch per call (not per record); set RESOLVEDESCRIPTIONS: false to skip it. Set RESOLVENAMES: true to enrich the response with the card owner's FIRSTNAME/LASTNAME/FULLNAME/NOTES (default false — off) via a single GetPerson lookup for the card's one PERSONID — cheaper than get_access_history's RESOLVENAMES, which pays one GetPerson call per distinct person across many records, since a card has exactly one owner. The four fields land on the top level of the response, alongside PERSONID/DISABLED/EXPDATE, not on each ACCESS record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| CARDFORMAT | Yes | Required. The card format of ENCODEDNUM. | |
| ENCODEDNUM | Yes | Required. The encoded card number whose access details should be retrieved. | |
| MAXRECORDS | No | Optional. Maximum number of access records to return. | |
| OLDESTDTTM | No | Optional. Oldest date/time to include in the returned access records. | |
| RESOLVENAMES | No | Optional (default false). Enrich the top level of the response with the card owner's FIRSTNAME/LASTNAME/FULLNAME/NOTES via a single GetPerson lookup for the response's top-level PERSONID (one lookup per call, not one per ACCESS record — a card has exactly one owner). | |
| RESOLVEDESCRIPTIONS | No | Optional (default true — on by default; the inverse of this codebase's usual optional-boolean default). Enrich each returned ACCESS 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. |