Role Assignment Actions

Setting up a form action to add, modify, or remove a role associated with a submission

The Role Assignment Action adds, modifies, or removes roles associated with the submission when an event occurs on a form. A common use case for the Role Assignment action is adding the action on a Registration form to grant users certain roles after they register. Those roles will then work in tandem with Form.io's authentication system.

Settings

Resource Association: The resource association will determine if a new or existing resource will be modified.

Action Type: What type of role assignment action to take.

Add Role: Adds the given Role to the submission record.

Remove Role: Removes the given Role from the submission record.

Role: The role to use when performing the role assignment. Roles are managed from the Access section of the project found on the left-hand navigation bar.

circle-info

The Role Assignment Action requires a Resource Form component with the API key, ‘submission’, to modify existing Resource submissions

Video

Last updated

Was this helpful?