members_update
Update member roles, active status, company access, and custom permissions. Assign ADMIN, ACCOUNTANT, or EMPLOYEE; owner is protected.
Instructions
Update a member's role, active status, allowed company access, and custom permissions. Cannot change role to OWNER or modify the organization owner. Roles: ADMIN, ACCOUNTANT, EMPLOYEE. Pass permissions as an array of permission strings to set custom permissions, or null to reset to role defaults.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | New role for the member: ADMIN, ACCOUNTANT, or EMPLOYEE | |
| uuid | Yes | Member UUID to update | |
| isActive | No | Whether the member is active. Deactivated members cannot log in. | |
| permissions | No | Custom permissions array (e.g. ["company.view","invoice.create"]). Pass null to reset to role defaults. | |
| allowedCompanies | No | Array of company UUIDs the member is allowed to access |