# Userrights

### **Overview**

The **User Rights** module allows administrators to control what users can access and what actions they can perform in **Spendwell iHospitality**.

Rights can be assigned based on:

- **Module Type** — Web or App
- **User Role** — Assign rights to all employees under a selected role
- **Employee** — Assign rights to a specific employee
- **Module** — Filter and manage rights for a specific module
- **Form** — Configure rights for individual screens or forms

The User Rights screen allows you to manage the following permissions:

<table id="bkmrk-permission-descripti"><thead><tr><th>Permission</th><th>Description</th></tr></thead><tbody><tr><td>👁️ **Can View**</td><td>Controls whether the user can view the form and its data</td></tr><tr><td>➕ **Can Add**</td><td>Controls whether the user can create new records</td></tr><tr><td>✏️ **Can Update**</td><td>Controls whether the user can edit existing records</td></tr><tr><td>🗑️ **Can Delete**</td><td>Controls whether the user can delete records</td></tr><tr><td>📋 **Can Manage Request?**</td><td>Controls whether the user can manage or process requests</td></tr></tbody></table>

Each applicable permission can be configured as **All** or **Self**.

---

### **User Rights Screen**

The User Rights screen provides filters at the top and a permission matrix below.

[![image.png](https://docs.spendwelltechsystem.com/uploads/images/gallery/2026-09/scaled-1680-/UVMimage.png)](https://docs.spendwelltechsystem.com/uploads/images/gallery/2026-09/UVMimage.png)

<table id="bkmrk-field-description-mo"><thead><tr><th>Field</th><th>Description</th></tr></thead><tbody><tr><td>**Module Type**</td><td>Select where the rights will apply: **Web** or **App**</td></tr><tr><td>**User Role**</td><td>Select a role to assign rights to all employees under that role</td></tr><tr><td>**Employee**</td><td>Select a specific employee to assign individual rights</td></tr><tr><td>**Module**</td><td>Filter forms belonging to a specific module</td></tr><tr><td>**Search Here**</td><td>Search for a form by name</td></tr><tr><td>**Create**</td><td>Save or create the configured user rights</td></tr><tr><td>**Reset Filters**</td><td>Clear the selected filters and reset the screen</td></tr></tbody></table>

> **Note:** Select either a **User Role** or an **Employee** based on how you want to assign the rights.

---

### **How User Rights Assignment Works**

User Rights can be assigned in two ways.

##### **1. Role-Wise Rights**

Use **User Role** when the same permissions should be assigned to multiple employees.

###### **Example**

Suppose you select:

- **Module Type:** App
- **User Role:** Housekeeping

When rights are configured and saved, the selected permissions apply to the employees associated with the **Housekeeping** role.

###### **Best Used For**

- Employees with the same responsibilities
- Department-level access
- Standard permission setup
- Assigning rights to multiple users at once

##### **2. Employee-Wise Rights**

**Employee-Wise Rights** are used when a specific employee needs customized permissions.

###### **Example**

- **Module Type:** App
- **Employee:** Aarav Patel

Only **Aarav Patel** receives this specific permission.

###### **Best Used For**

- Specific employee access
- Customized permissions for individual employees
- Giving different rights to employees with the same role
- Managing employee-specific form access
- Granting access to selected forms only

### **All vs Self**

#### **All**

**All** means the user can access data of the users **below their role in the User Role Hierarchy**.

##### **Example**

Hierarchy:

```text
Hotel Manager
    ↓
Housekeeper
    ↓
Laundry Staff

```

If **Tushar** is a **Hotel Manager** and has:

```text
View → All

```

Tushar can view data of the roles below him in the hierarchy:

```text
Tushar
Hotel Manager
    ↓
✓ Housekeeper data
    ↓
✓ Laundry Staff data

```

> **All = Access data of users under the logged-in user's role hierarchy.**

---

#### Self

**Self** means the user can access **only their own data**.

##### **Example**

If **Tushar** is logged in and has:

```text
View → Self

```

Then:

```text
Tushar
    ↓
✓ Tushar's own data

✕ Housekeeper data
✕ Laundry Staff data

```