# Invite a user

**Invite User** is an action available in the **Rule Panel** that allows you to send an invitation via **email** to a specific person. Along with the invitation, you can assign a **role** (such as Admin, User, etc.) to the invitee. This enables them to access the app with predefined permissions once they accept the invitation.

## Properties and Explanation

Here are the steps to follow in order to use the Invite User action:

{% stepper %}
{% step %}

### Email Addresses:

This property specifies where the system will fetch the recipient's email address from. You can either:

* Select a field from your page (like a **Text Input**) where the user types their email,\
  **or**
* Directly enter an email address inside **double quotes** (e.g., `"example@email.com"`) to send the invite without fetching from the page.
  {% endstep %}

{% step %}

### Roles:

This property specifies which role will be assigned to the invited user.\
You can either:

* Select a field from your page (such as a **Dropdown** or **Text Input**) where the role is entered or selected,\
  **or**
* Directly write the role inside **double quotes** (e.g., `"Admin"`) to assign it without fetching from the page.

{% endstep %}
{% endstepper %}

## Full Configuration Example

Below is a screenshot of the **Invite User** action configuration, showing all properties set for the email address and role&#x73;**:**

<figure><img src="https://2522808837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqi6LY8LVcMuHJBhf1S2u%2Fuploads%2FRimaHsMmUKFbKtqbi3ej%2Fimage.png?alt=media&#x26;token=464383b7-307a-426e-a9cd-8228c5af0c13" alt=""><figcaption><p>This screenshot shows the <strong>complete configuration</strong> of the Invite User action, including all relevant properties set up on the page.</p></figcaption></figure>

A dropdown is used to select the role (e.g., Admin, User), a text input named **emailInput** is provided to enter the email address, and a button triggers the **Invite User** action. On clicking the button, the rule sends an invite to the email entered in **emailInput** with the selected role.
