Skip to content

Groups, access and row-level security ​

Access to data has three levels: which applications a person reaches, which rows they see inside them and what they can do. All three live under Users and access.

Groups ​

A group brings together people who need the same access, like South managers.

  1. On the Groups tab, create the group and give it a name.
  2. Under Members, add the people.
  3. Under Applications, select the applications. Members now see them, on top of the ones they already had.
  4. If you want, turn on permissions in the group: they apply to the members, on top of each one's own.

Administrators stay out of groups: they already see everything.

A group that gives permissions

When a group gives permissions, only the administrator changes its members.

Access by user ​

To adjust a single person:

  1. On the Access by user tab, choose the user.
  2. Under Applications they see, select the applications.
  3. Click Save applications.

The person only sees the tables of the selected applications, in Studio and in AI assistants. What comes from a group is changed in the group.

Row-level security ​

Row-level security makes each person see only the rows that belong to them: their region, their branches, their accounts.

It works in two parts:

  1. The model declares the key. A security key is a name, like Region, tied to a column (see Model and publishing).
  2. You say who sees which values.

Create a key ​

  1. On the Row-level security tab, choose the application.
  2. Click + Security key.
  3. Give it a name and choose the table and the column where the key lives.
  4. Under Anyone with no assigned value, choose sees everything or sees nothing.
  5. Click Create key.

Where the key lives

Prefer the lookup table (regions, branches) rather than the transactions table. The filter reaches the other tables through the model's relationships.

Assign values ​

For each group or person, enter the values they see: for example, South and Southeast for the South managers.

When the values already exist in a lookup (a table that links the sign-in to the value), use the option to bring the values from the data instead of typing them one by one.

The Not covered notice lists the application's tables the key doesn't reach.

Where the filter applies ​

On every table linked to the key through the model's relationships: in Studio, in the AI and in the assistants connected to LumeDB. Administrators see everything, unfiltered.

Check someone's access ​

Under Access by user, choose the person to see their applications and their row-level security together.

LumeDB © Keon Analytics