REST API - create REST operator
Create a least-privilege REST operator for API authentication and auditing.
Every cardholder change is pinned to an operator, for privilege enforcement and audit. Each change raises an operator event. Interactive changes use the workstation as the source; REST changes use the REST Client. You can run reports filtered on source and operator to monitor the integration.
Steps
Create a cardholder and add it to an operator group. Never use "Advanced User".
In production, give the operator a bare minimum of capabilities and no card, logon, password, or user code.
Give the operator plenty of description: what it does, where it connects from, and who to contact. The security team is not the integration team, so the description is how they tell them apart.
In development, a logon plus the "Launch Configuration Client" privilege is convenient.
Operator privileges for the REST API
This is not the complete list: see the topic Which Operator Privileges you require in the Configuration Client's online help for more.
Privileges lie on divisions, not on items. When the table says you need a privilege on some item, it means on the division containing that item, or one of that division's ancestors.
Goal
Privileges Required
View cardholder data at /api/cardholders and /api/cardholders/id except notes and operator fields.
‘View Cardholder’ or any of the privileges that allow editing a cardholder, on the cardholder’s division.
View all cardholder data
‘View Cardholder’ or any of the cardholder editing privileges, plus: ‘View Cardholder Notes’ ‘View Operators’ (no effect in all versions at the time of writing, because they lack operator data) ‘View Lockers and Assignments’ (for more locker details) …on the cardholder’s division
Create cardholders, but not modify them.
‘Create Cardholders’ on the cardholder’s division.
Create and modify cardholders, except their notes and operator settings.
‘Create and Edit Cardholders’ on the cardholder’s division
Assign a card to a cardholder.
One of the three privileges that let you edit cardholders on the cardholder’s division and on the card type’s division.
Edit cardholders, except notes and operator settings.
‘Edit Cardholders’ on the cardholder’s division
Edit cardholder notes.
One of the privileges that let you edit cardholders as well as either of ‘Add Cardholder Notes’ or ‘Edit Cardholder Notes’ on the cardholder’s division. It is different in the thick clients: there, one of the last two is enough.
Modify cardholder group memberships.
One of the privileges that lets you edit cardholders on the cardholder’s division plus ‘Modify Access Control’ on the group’s division. ‘Modify Access Control’ on the group’s division is enough in the thick clients.
View assignable card types at /api/card_types/assign
One of the three ‘edit cardholder’ privileges on the card type’s division
Change locker assignments
One of the privileges that lets you edit cardholders on the cardholder’s division plus ‘Manage Locker Assignments’ on the locker’s division. ‘Manage Locker Assignments’ on the locker’s division is enough in the thick clients.
Disable a card.
One of the privileges that lets you edit cardholders on the cardholder’s division. The ‘Disable Card’ privilege has no effect on current versions of the REST API. In the thick clients, you do not need edit privileges on the cardholder if you have ‘Disable Card’.
De-authorise a cardholder.
‘De-authorise Cardholder’ or one of the privileges that lets you edit cardholders on the cardholder’s division.
Edit a relationship between cardholders.
One of the privileges that lets you edit cardholders on the cardholder’s division and on the role’s division.
View events at /api/events
‘View Events and Alarms’ or any of the privileges that allow processing alarms, on the division of the source of the event or alarm.
Acknowledge, process, or mark alarms as viewed.
‘Edit Alarms’ on division of the source of the event or alarm.
Override an access zone’s mode.
‘Override’ on the zone’s division.
Run a macro at /api/macros/id/run
‘Run Macros’ or ‘Schedule & Run Macros’ on the macro’s division.
Shunt or unshunt an item.
‘Maintenance Override’ on the item’s division. ‘Override’, which is good for most other overrides, is not enough to shunt or unshunt an item
View PDF definitions at /api/personal_data_fields
‘View Personal Data Definitions’ or ‘Edit…’on the PDF’s division.
🔗 Related
REST API - Setting up REST API in Command Center. Drag this operator into the REST Client item.
REST API - What is an API Key?. The key that carries this operator's credentials.
Last updated
Was this helpful?
