# Roles and Permissions

Insulin uses role-based access control (RBAC) for agents, channels, apps, knowledge bases, jobs, sandboxes, skills, and marketplace actions. Understanding these roles helps you collaborate effectively with your team. This section is the canonical reference for Insulin roles — other pages link back here and note only their own differences.

## How access is decided

Whenever you act on something in Insulin, the same questions are asked in order:

1. **Is it one of your own self-owned things?** Your desktop, memory, jobs, skills, and sandboxes are yours to
   manage whatever your org role (see [Your own things are not role-gated](#your-own-things-are-not-role-gated)).
2. **Does your organization role allow the action?** Creating or changing things takes **EDITOR**, and acting
   at the organization level takes **ADMIN** (see [Organization Roles](#organization-roles)).
3. **Who owns it?** A user-level resource is private to its creator, and the built-in **Insulin** agent is
   available to everyone. On an organization resource, your role is the higher of the role shared with you
   directly and the role shared with the whole organization.
4. **Does that role reach the action?** Viewing takes **VIEWER**, chatting **USER**, editing **EDITOR**,
   sharing **ADMIN**, and deleting **OWNER** (see [Resource Roles and Exceptions](#resource-roles-and-exceptions)).

*Diagram: Your own self-owned things skip the role checks; anything else must pass your org role, then its ownership, then the role you hold on it.*

- You act on something in Insulin → Your own desktop, memory, job, skill or sandbox?
- Your own desktop, memory, job, skill or sandbox? → Yours to manage (whatever your org role): yes
- Your own desktop, memory, job, skill or sandbox? → Does your org role allow the action?: no
- Does your org role allow the action? → Refused: no
- Does your org role allow the action? → Who owns it?: yes
- Who owns it? → Private to its creator (even org admins can't open it): a person
- Who owns it? → Built in (the Insulin agent is available to everyone): built in
- Who owns it? → Does your role on it reach the action? (the higher of your own share and an org-wide share): the organization
- Does your role on it reach the action? (the higher of your own share and an org-wide share) → Allowed: yes
- Does your role on it reach the action? (the higher of your own share and an org-wide share) → Refused: no

## Ownership Levels

Every agent, channel, app and knowledge base is owned at one of two **ownership levels**, which decide who can see it:

| Level | Description |
|-------|-------------|
| **User** | Private to the creator. Only visible to others when explicitly shared. |
| **Org** | Owned by your organization. Private by default, but can be shared to other members of the organization explicitly. |

Fours' **built-in agents** sit outside both levels. Fours provides them, and the **Insulin** agent is available to every member of your organization.

## Organization Roles

Every user in your Fours organization has an org-level role that determines what they can do across Insulin:

| Org Role | Permissions |
|----------|-------------|
| **ADMIN** | Full access. Can create organization-level resources, manage settings, and manage organization-level integrations. Only an ADMIN can act at the organization ownership level. |
| **EDITOR** | Can create and manage their **own** agents, channels, jobs, skills, and apps. Can read and upload to sandboxes they created. Read-only access to settings. Cannot create organization-level resources. |
| **VIEWER** | Read-only on **shared** resources — can view agents, channels, and apps but not create, edit, or delete them. Can still chat one-on-one with an agent they can open, the **Insulin** agent included. Can still fully manage the [self-owned resources](#your-own-things-are-not-role-gated) they created. |

## Your own things are not role-gated

Five kinds of thing are **self-owned**, and they sit outside the role tiers above:

**desktop · memory · jobs · skills · sandboxes**

Any member of the organization may create and manage the rows they own on these — **including a VIEWER**, and including someone on a custom organization role your admins defined. The test is ownership, not org role. Your desktop layout, what agents remember about you, the jobs you set up, the skills you wrote, and your own sandboxes are yours to manage whatever tier you sit in.

What still applies:

- **You can only manage rows you created.** Someone else's desktop icons, memories, jobs, skills, or sandboxes are not yours to touch. An org **ADMIN** can reach the others on your behalf — but **not jobs**: a job is visible and runnable only to the person who created it, admin or not.
- **Organization-level versions are a different matter.** Creating or editing a skill in the Organization store, or managing the organization's shared sandbox pool, still requires org admin.
- **Everything else stays on the tiers above.** Agents, channels, and apps are governed by the org roles and the resource roles below — a VIEWER reads them and nothing more.

## Resource Roles and Exceptions

When an agent or channel is shared, each participant is assigned a resource-level role. Roles are hierarchical — higher roles inherit all permissions of lower roles.

| Role | View | Chat | Edit | Share | Delete |
|------|------|------|------|-------|--------|
| **OWNER** | Yes | Yes | Yes | Yes | Yes |
| **ADMIN** | Yes | Yes | Yes | Yes | No |
| **EDITOR** | Yes | Yes | Yes | No | No |
| **USER** | Yes | Yes | No | No | No |
| **VIEWER** | Yes | No | No | No | No |

- **OWNER** — The creator of the agent or channel. Only the owner can delete the resource — not even a shared ADMIN can. Deleting an **organization** agent also takes being an organization **ADMIN** at the time, so an owner who has since lost that role cannot delete it. Ownership of an organization agent, channel, or app can be transferred — only by its owner, and only to someone who is currently an organization **ADMIN**.
- **ADMIN** — Can manage sharing (invite/revoke members and assign roles) and edit configuration, but cannot delete the resource.
- **EDITOR** — Can modify the agent's system prompt, model, knowledge bases, and integration allowlist, or a channel's settings.
- **USER** — Can chat with the agent or participate in the channel, but cannot change any configuration.
- **VIEWER** — Read-only access. Can view resources but cannot send messages or trigger actions.

## Working with a Shared Resource

When you open a resource that's shared with you — an agent, channel, knowledge base, or app — its settings view shows an **owner-and-role banner** at the top: the owner's name (and email) on the left, and a badge on the right that reads **Owner** when the resource is yours or **Shared · _Role_** otherwise. The **USER** role appears in this badge as **Member**.

If your role is below **Editor** — that is, **Member** (USER) or **Viewer** — the settings render **read-only**: you see the full configuration, but every control is disabled so you can't change it. Editor, Admin, and Owner see the same view with editable controls. Deleting an agent or a channel stays **Owner-only** no matter what else you can edit (and an organization agent's owner must also still be an organization **ADMIN**); a knowledge base, or an organization app, can also be deleted by anyone who holds **Admin** on it (see [Apps](/insulin/custom-apps/sharing/#sharing-an-app)).

## Sharing Constraints

Not every role can be assigned in every situation:

| What you're sharing | Roles you can assign to individuals | Roles you can assign org-wide |
|---------------------|-------------------------------------|-------------------------------|
| **Agents** | ADMIN, EDITOR, USER (no VIEWER) | EDITOR, USER |
| **Channels and apps** | ADMIN, EDITOR, USER, VIEWER | EDITOR, USER, VIEWER |
| **Knowledge bases** | ADMIN, EDITOR, USER (no VIEWER) | EDITOR, USER |

- Agents and knowledge bases cannot be shared as **VIEWER** — their lowest role is USER.
- Org-wide shares can never grant **ADMIN** to the whole organization, for any resource type.
- When you share an agent or an app with a person, **ADMIN** is offered only if you are an organization **ADMIN** yourself. For an app, the server also refuses the grant from anyone else.

Important exceptions:

- User-level agents, channels, and apps are private to their creator unless shared flows explicitly allow otherwise.
- Organization admins do not automatically get elevated access to every organization channel; channel access is controlled by channel membership and org-wide sharing.
- Being an organization admin grants nothing on an organization agent that a person owns. The exception is an organization agent that no person owns: every organization **ADMIN** holds **ADMIN** on it.
- Organization-level agent and app integration changes require organization administrator privileges.
- Organization-level agents can only use organization-level integrations. User-level agents use user-level integrations.

:::tip
When you create a custom agent, you are its OWNER by default. Share it with your team by assigning roles to individual users or to your entire organization.
:::
