> ## Documentation Index
> Fetch the complete documentation index at: https://docs.koalake.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How access works

Learn how Koalake decides what each person or machine is allowed to see.

## Role-based access control (RBAC)

Your role decides what you can access in Koalake. Each role is a set of permissions: which data you can read or change, and which other parts of Koalake you can use, such as projects.

![A person and a machine are each assigned a role, and a person can hold several. The role grants permissions: No access to the finance data, then Read on the sales data, Edit on the operations data, and Full control on the orders table.](https://mintcdn.com/koalitixtechnologybv/6ul-ra85jf-E6d8E/images/how-access-works-role.svg?fit=max\&auto=format\&n=6ul-ra85jf-E6d8E\&q=85\&s=c1a9b7e1a4fd59a63ae66ef12f2d8a79)

![A person and a machine are each assigned a role, and a person can hold several. The role grants permissions: No access to the finance data, then Read on the sales data, Edit on the operations data, and Full control on the orders table.](https://mintcdn.com/koalitixtechnologybv/6ul-ra85jf-E6d8E/images/how-access-works-role-phone.svg?fit=max\&auto=format\&n=6ul-ra85jf-E6d8E\&q=85\&s=c0fff91011c18a17f7d0ea9c562c4722)

For example, a role with a Read permission on the sales data lets everyone who holds that role read that data. Without that permission, they can't access it.

Your LLM connects to Koalake with your user account. It works under the role that's active in Koalake Desktop, and can access only what that role allows. It can switch to another role you hold, but never to one you don't hold. See [Switching roles](#switching-roles).

Read more in [Assign roles and permissions](https://docs.koalake.com/access/assigning-roles-and-permissions.md#access-levels).

## Row-level security (RLS)

A role can also limit which rows of a table you see. For example, in the demo data the Sales NL role sees only Dutch customers, and Sales DE only German ones. That way, both teams can use the same data app (A dashboard, report, or small tool your LLM builds from a prompt on your own data. You open it in Koalake Desktop.).

Row rules work only when **Enforce role policies** is on, under **System settings › Data access › Row-level security**. It's off on a new account and already on in the free trial.&#x20;

## Switching roles

You can hold more than one role. For instance, if you work for both Finance and Management, you might hold one for each.

Only one role is active at a time. When you sign in, your **default role** is active. You can switch to another role you hold whenever the task changes, and what you see updates immediately.

You switch roles in two places: Koalake Desktop and the Portal. Switching in one doesn't switch the other.

* **Koalake Desktop:** the role your LLM works under in Claude Code or Codex, and the role your data apps open under. To switch, click your role at the top right of Koalake Desktop and choose another.
* **Koalake Portal:** the role you work under in the Portal. To switch, open the role list at the bottom left of the Portal and click the role. To change your default role, hover over a role and click **Make default**.

![An animation of the bottom-left corner of the Koalake Portal, looping. At the bottom of the sidebar, the role selector shows the active role, Finance, and below it the signed-in person, alice.v. The pointer clicks the role selector and the role list opens: a Search roles field, then Finance, marked Default and ticked as the role in use, and Management. The pointer hovers Management and a Make default button appears; it clicks it, and Default moves to Management while the tick stays on Finance: making a role the default does not switch to it. Then the pointer clicks Management itself, the tick moves to Management, the list closes, and the role selector now reads Management.](https://mintcdn.com/koalitixtechnologybv/6ul-ra85jf-E6d8E/images/how-access-works-role-switcher-flow.svg?fit=max\&auto=format\&n=6ul-ra85jf-E6d8E\&q=85\&s=1a88a6f0d7a4ca6303e0f42dbc840e29)

![An animation of the bottom-left corner of the Koalake Portal, looping. At the bottom of the sidebar, the role selector shows the active role, Finance, and below it the signed-in person, alice.v. The pointer clicks the role selector and the role list opens: a Search roles field, then Finance, marked Default and ticked as the role in use, and Management. The pointer hovers Management and a Make default button appears; it clicks it, and Default moves to Management while the tick stays on Finance: making a role the default does not switch to it. Then the pointer clicks Management itself, the tick moves to Management, the list closes, and the role selector now reads Management.](https://mintcdn.com/koalitixtechnologybv/6ul-ra85jf-E6d8E/images/how-access-works-role-switcher-flow-phone.svg?fit=max\&auto=format\&n=6ul-ra85jf-E6d8E\&q=85\&s=fc817fae3214d648d6944d8139733768)

Your LLM can also switch roles for you: ask it, for example, *"Switch to the Sales NL role."* That switches the role in Koalake Desktop, not in the Portal.

## Create a role hierarchy

Roles can build on top of each other. A parent role has a base set of permissions, such as Read on the sales data. A child role has access to everything its parent has, plus any permissions you add on top.

Read more in [Assign roles and permissions](https://docs.koalake.com/access/assigning-roles-and-permissions.md#role-relationships).

![A parent role grants Read on the sales data. Two child roles inherit from it: each lists Read on the sales data as inherited, and adds one permission of its own, Read on the finance data for child role A and Edit on the orders table for child role B.](https://mintcdn.com/koalitixtechnologybv/6ul-ra85jf-E6d8E/images/how-access-works-hierarchy.svg?fit=max\&auto=format\&n=6ul-ra85jf-E6d8E\&q=85\&s=699b21dd41d134de04f8c4bc95b03fe6)

![A parent role grants Read on the sales data. Two child roles inherit from it: each lists Read on the sales data as inherited, and adds one permission of its own, Read on the finance data for child role A and Edit on the orders table for child role B.](https://mintcdn.com/koalitixtechnologybv/6ul-ra85jf-E6d8E/images/how-access-works-hierarchy-phone.svg?fit=max\&auto=format\&n=6ul-ra85jf-E6d8E\&q=85\&s=d1f10ae04982db8e36eecafc2936378c)

## What to do next

* [Assign roles and permissions](https://docs.koalake.com/access/assigning-roles-and-permissions.md): create roles, set what they allow, and assign them to people.
* [Access for machines](https://docs.koalake.com/access/access-for-machines.md): how scripts and pipelines sign in to Koalake on their own.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.