onEmployeePermissionsUpdated
Purpose
Triggered when an employee's permissions are changed. Use this hook to track permission changes for auditing purposes.
When It Triggers
Owner or authorized employee updates someone's permissions
Permissions are added or removed
Parameters
data.source
number
Server ID of who updated
data.shopId
string
Unique shop identifier
data.shopName
string
Display name of the shop
data.employeeIdentifier
string
Employee's identifier
data.employeeName
string
Employee's name
data.previousPermissions
table
Array of previous permissions
data.newPermissions
table
Array of new permissions
data.addedPermissions
table
Permissions that were added
data.removedPermissions
table
Permissions that were removed
data.updatedBy
string
Name of person who updated
data.updatedByIdentifier
string
Identifier of person who updated
data.timestamp
number
Server timestamp
Example
Last updated