Aniston NexusDocs
Open Aniston Nexus

Customer permissions

Decide per customer which alarm and device actions its users may take, and see what the server enforces.

A tenant administrator decides, per customer, which actions the customer's users may take on alarms and devices. Open Customers & users > Customers, select the customer, click the edit button and tick the boxes under Customer permissions, then save.

PermissionLets the customer's usersDefault
Acknowledge alarmsMark an alarm as seenOn
Comment on alarmsAdd notes to an alarm, edit and delete their own notesOn
Assign alarmsAssign an alarm to a user of the same customer, or remove the assignmentOff
Clear alarmsClose an active alarm before the device reports that the problem is goneOff
Control devicesSend commands (RPC) to devices, for example switch a pump or a valveOff

A customer that was never edited uses the defaults. The first save stores all five values.

What the users see

Customer users see only the buttons their customer allows: the acknowledge and clear buttons and the selection boxes in alarm tables (dashboard widgets and the Alarms page), the buttons in the alarm details dialog, the assignee picker and the comment box. Buttons that are not allowed are hidden, not greyed out.

Assign alarms lists only the users of the same customer. The list comes from GET /api/alarm/{alarmId}/assignees, which customer users may call when their customer allows assignment.

The settings are read once when the user signs in. After you change them, the customer's users see the change after they sign in again or reload the page.

What the server enforces

The server refuses a forbidden action with HTTP 403 and the message "Your organisation has not enabled this action", whatever the user sends:

RequestNeeds
POST /api/alarm/{alarmId}/ackAcknowledge alarms
POST /api/alarm/{alarmId}/clearClear alarms
POST /api/alarm/{alarmId}/assign/{userId}, DELETE /api/alarm/{alarmId}/assign, GET /api/alarm/{alarmId}/assigneesAssign alarms
POST /api/alarm/{alarmId}/comment, DELETE /api/alarm/{alarmId}/comment/{commentId}Comment on alarms

Control devices is stored with the others but not yet checked by the server or the command widgets. Until it is, give the customer's users a custom role without Devices: Commands (RPC) to stop them from sending commands.

Tenant administrators and system administrators are never restricted by these settings. Custom roles still apply on top: a customer user needs both the customer permission and, when the user has a role, the role's alarm right (Acknowledge, Clear or Edit).

Alarms raised before a device was assigned

An alarm remembers the customer its device or asset belonged to when the alarm was raised. If you assign the device to a customer later, its older alarms still show in the customer's alarm widgets. Customer users may open, acknowledge, clear, assign and comment on such alarms (as far as the permissions above allow) as long as the device or asset now belongs to their customer.

Where it is stored

In the customer's additionalInfo.nexusCustomerActions, for example:

{"alarmAck": true, "alarmComment": true, "alarmAssign": true, "alarmClear": false, "deviceControl": false}

A missing key means the default. Scripts can set it with POST /api/customer like any other customer field. A change applies at once on the server that saved it; other servers of a cluster pick it up within 30 seconds.