seed_grant_permission
Grant a role access to a Seed resource by creating a permissions row and linking it to the role. Use a bitmask (create=1, read=2, update=4, delete=8, full=15) to set access level.
Instructions
Grant a role access to a Seed resource by creating a permissions row and linking it to the role. Access bitmask: create=1, read=2, update=4, delete=8, full CRUD=15.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Permission display name. Defaults to '<resourceId> Full CRUD'. | |
| access | No | Bitmask access value. Defaults to full CRUD (15). | |
| roleName | No | Role to receive the permission. | admin |
| resourceId | Yes | Resource/table id to grant access to, usually the table name. |