# Role Assignment Actions

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.

<figure><img src="https://501951130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6LdEf8SjBIeQDsRL3BdV%2Fuploads%2FpWNYWNvhiZBz9lChWRZZ%2Froleassignment1.png?alt=media&#x26;token=75f1b18d-aecf-4930-a316-0e1d9e8046d4" alt=""><figcaption></figcaption></figure>

## 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.&#x20;

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.&#x20;

{% hint style="info" %}
The Role Assignment Action requires a Resource Form component with the API key, ‘submission’, to modify existing Resource submissions
{% endhint %}

## Video

{% embed url="<https://www.loom.com/share/4e4b9cd6c0ba444d90574f2400d07806>" %}
