# Roles

## Overview

Roles define what an admin can **view** and **modify** in the Admin Panel.\
Use roles to give teams the access they need, and nothing else.

When your tenant is created, you get a **Super Admin** role with full access.\
Create additional roles for Support, Marketing, Operations, partners, and more.

Create the role first.\
Then assign it to admins.

{% hint style="info" %}
With restricted roles, some pages can return **403** when access is missing.
{% endhint %}

* **View** permissions let admins read data only.
* **Modify** permissions let admins create, edit, and delete data.
* Anything not granted is hidden or disabled (grayed out).

<figure><img src="/files/zKqROmxr7qyfycSW289m" alt=""><figcaption></figcaption></figure>

***

## 🛠️ Step-by-Step Setup

Follow these steps to create a role and grant access.

{% stepper %}
{% step %}

### Navigate to Roles

1. Go to **Settings → Roles**.
2. Click **+ ADD ROLE**.
   {% endstep %}

{% step %}

### Fill in basic details

* **Role name**
* **Default** (optional) for LDAP-created admins
  {% endstep %}

{% step %}

### Add permissions

1. Click **+ ADD PERMISSION**.
2. Pick **Access**: `View` or `Modify`.
3. Pick a **Resource**.

{% hint style="warning" %}
Always grant **View - Stores** for new roles.\
Without it, assigned admins can’t use the Admin Panel.
{% endhint %}
{% endstep %}

{% step %}

### (Optional) Restrict tenants

Use **Add tenant** to scope the role to specific tenants.\
Only **Super Admin** can manage tenant assignment.
{% endstep %}

{% step %}

### Save and assign the role

1. Save the role.
2. Assign it in **Settings → Admins**.
   {% endstep %}
   {% endstepper %}

<figure><img src="/files/wMDFUXYIRQKGp2YG3qEC" alt="" width="563"><figcaption></figcaption></figure>

***

## ✏️ Manage roles

{% stepper %}
{% step %}

### Open the role menu

In the Roles table, open the **⋮** menu.

<div align="center"><figure><img src="/files/IXBWXvwfcyLUYwsmQdl6" alt="" width="248"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Edit

Use **Edit** to change permissions and tenants.
{% endstep %}

{% step %}

### Duplicate

Use **Duplicate** to copy a role and adjust it.
{% endstep %}

{% step %}

### Delete

Use **Delete** to remove a role.\
This can’t be undone.

{% hint style="info" %}
If admins use the role, reassign them first.
{% endhint %}
{% endstep %}
{% endstepper %}

***

## ✅ Best practices

* Start with `View`. Add `Modify` only when needed.
* Create roles per team. Keep them small.
* Test access with a restricted admin before rollout.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.openloyalty.io/main-features/settings/roles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
