brainkb_add_access_rule
(Space manager) Restrict a space action to a subject. action: 'read' | 'write' | 'manage'. subject_type: 'global_role' (e.g. 'Admin','Lab Member') | 'member' (an email) | 'space_role' ('viewer'|'editor'|'owner', matched as >=). When rules exist for an action, only matching callers may perform it; the space owner and Admin/SuperAdmin always bypass (no lockout). Example: restrict writing to Admins -> action='write', subject_type='global_role', subject_value='Admin'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| action | Yes | ||
| subject_type | Yes | ||
| subject_value | Yes |