# Role permissions

UI Bakery provides you with the flexibility of specifying permissions you want to grant to different user roles. Below you'll find more details about all permissions and settings available.

{% @arcade/embed flowId="rw5WfWinhoByNrfTpI71" url="<https://app.arcade.software/share/rw5WfWinhoByNrfTpI71>" %}

## Access to applications

| Permission         | Description                                                                                                                                                                                                                                                                                                                                                    |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Use Prod**       | A role with this permission can *view the Prod environment*.                                                                                                                                                                                                                                                                                                   |
| **Use Staging**    | A role with this permission can *view the Staging environment*.                                                                                                                                                                                                                                                                                                |
| **Use Dev**        | A role with this permission can *view the Dev environment*.                                                                                                                                                                                                                                                                                                    |
| **Develop**        | <p>A role with this permission and <strong>Use Dev</strong> can <em>view the Dev environment and edit applications</em>.</p><p>Additionally, a role with this permission or a role with <strong>Can create app</strong> permission can <em>view Data sources, Database, AI Playground and Actions library</em>.</p>                                            |
| **Deploy Stage**   | A role with this permission and **Use Dev** & **Develop** can *view the Dev environment, edit applications, and deploy them to Staging*.                                                                                                                                                                                                                       |
| **Deploy Prod**    | A role with this permission and **Use Dev** & **Develop** can *view the Dev environment, edit applications, and deploy them to Prod*.                                                                                                                                                                                                                          |
| **Can create app** | <p>A role with this permission can <em>create applications</em>. The apps created will be added with the same permissions as the role that created them.<br><br>Additionally, a role with this permission or a role that has at least one <strong>Develop</strong> permission can <em>view Data sources, Database, AI Playground and Actions library</em>.</p> |

{% hint style="warning" %}
Deleting apps is restricted to **Admin** & **Editor** roles.
{% endhint %}

## Access to data sources

| Permission                | Description                                                                                                                                                                                                                                                                                    |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Use**                   | A role with this permission can *make requests to a data source*.                                                                                                                                                                                                                              |
| **Edit**                  | A role with this permission can *make requests to data sources and change their settings, but **cannot delete** them*.                                                                                                                                                                         |
| **Can create datasource** | A role with this permission can *create data sources*<mark style="background-color:yellow;">.</mark> The data sources created will be added with **Use** and **Edit** permissions, same as the role that created them; and users with this role will be able to view the created data sources. |

{% hint style="warning" %}
Deleting data sources is restricted to **Admin** & **Editor** roles.
{% endhint %}


---

# 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://docs.uibakery.io/concepts/workspace-management/role-permissions.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.
