Manage permissions and access to AI agents

TL;DR

Agents use the same roles as the rest of Baserow, in two directions:

  • Who can do what with the agent. People get a role on the agent, as they do on a database. Editors chat with it, and Builders change its instructions, triggers and tools. The agent’s Permissions can narrow who chats, approves steps and continues triggered conversations, the way field permissions narrow who edits a field.
  • What the agent can do in your workspace. The agent works as an identity, a workspace member that isn’t a person. Like any member, the identity gets roles on the workspace, databases, tables and views. The agent’s tools, and Ask first on each of them, narrow what it does with that access.

Changes the agent makes show its identity in row history and the audit log, like any member’s changes.

Roles below the workspace level, Permissions and the audit log need the Advanced or Enterprise plan. Each section says what applies without it.

Manage permissions and access to AI agents in Baserow


The most important thing to know: an agent always uses its identity’s access, whoever talks to it. Workspace admins create identities, and Builders can make any agent run as one of them. From then on, everyone who can chat with the agent can ask it to use that access, even for data they can’t open themselves. That includes Editors and visitors of its public chat or website widget. Give each identity only the access its agents need.

An example

A support team wants an agent that answers questions from the help docs and logs each request.

Who can do what with the agent:

Setting Choice
Who can chat The Support team
Who can approve tool calls Admins only

What the agent can do in your workspace:

Setting Choice
Identity’s role on the workspace No access
Identity’s role on the Help docs database Viewer
Identity’s role on the Support requests table Editor
Tools Read rows and Create rows, with Ask first on Create rows

Support staff can chat with the agent. It can read the help docs and add requests, and nothing else, and an admin approves each new request before it’s saved.

Who can do what with the agent

Roles on the agent

Everyone gets the role they have on the workspace. To give someone a different role on one agent, open the agent’s menu in the sidebar and click Manage members. This needs Advanced or Enterprise.

Role on the agent What they can do
Viewer, Commenter Read shared conversations, but not chat.
Editor Chat and approve steps.
Builder Also change the agent’s instructions, triggers, tools and other settings.
Admin Also manage the agent’s members.
No access Not see the agent at all.

Narrow it with Permissions

Open the agent and go to How it gets started › Permissions. These settings can only narrow what roles allow, never widen it: a Viewer can’t chat even if you pick them.

Setting What it covers Default
Who can chat Start conversations and send messages. Editors and higher
Who can approve tool calls Approve or reject waiting steps, and answer the agent’s questions. Editors and higher
Who can continue triggered conversations Send messages in a conversation that a trigger started. Nobody

For each setting, choose Editors and higher, Builders and higher, Admins only, Specific users or teams, or Nobody. The roles are those on this agent. Nobody isn’t offered for approving, so someone can always decide a waiting step. People you pick under Specific users or teams still need at least the Editor role on the agent.

For example, let your team chat with a project agent, let only admins approve its steps, and keep the default so nobody can write in conversations its triggers start.

Without Advanced or Enterprise, everyone with access to the agent can chat and approve steps, and nobody can continue triggered conversations.

What the agent can do in your workspace

Give the agent an identity

An identity is a workspace member that isn’t a person. It can’t sign in and, during the beta, doesn’t use a seat. The agent works as its identity:

  • It can see and change only what the identity can.
  • It never uses the access of the person chatting with it, and that person’s access doesn’t limit it either.

For example, if the identity can read a Salaries table, anyone who can chat with the agent can ask it for salaries, even without access to that table.

Open the agent and go to What it can do › Workspace access › Run as. You can:

  • Create a new identity.
  • Choose an existing one.
  • Choose No workspace access, so the agent can’t read or change anything in the workspace.

When an admin creates an agent, the wizard creates a new identity for it by default. That identity gets the Builder role on the whole workspace, or Viewer if the agent should only read, so the agent can work right away. Other members start with No workspace access. Check the identity’s access before you use a new agent.

Workspace admins create, change and delete identities in Workspace settings › Identities. Builders can choose an existing identity for an agent, even one that can reach more than they can. Without Advanced or Enterprise, any member can.

Give the identity roles

An identity gets roles like any member:

Role What the agent can do as this identity
Admin Everything, including workspace settings. Avoid it for agents.
Builder Create and change databases, tables, fields and views, and edit data.
Editor Create, change and delete rows, but not tables or fields.
Commenter Read data and comment on rows.
Viewer Only read data.
No access Nothing, except where it has a role on a specific database, table or view.
No role Takes its role from its teams.

Without Advanced or Enterprise, an identity is either an Admin or a Member, on the whole workspace.

To limit the agent to what it needs, with Advanced or Enterprise:

  1. In Workspace settings › Identities, give the identity No access on the workspace.
  2. Open the menu of each database, table or view the agent needs, click Manage members, add the identity and choose its role there.

You can also add the identity to a team, so it gets the team’s roles, and pick it in a field’s permissions to decide whether it can edit that field.

Choose its tools

The identity’s roles decide what the agent could reach. Its tools decide what it actually does there. Access to a table doesn’t turn on a tool, and a tool can’t reach data the identity can’t.

  • Workspace tools read and change data as the identity. Choose Everything, Read only or Custom, and turn on Ask me before making changes to make every change wait for approval.
  • Actions send emails, Slack messages and HTTP requests, or work with a specific table. Ask first is on by default for actions that change something.
  • Connected app tools come from apps you connect. For each tool, choose Allow and, if it should wait, Ask first.

A role covers everything it allows: an Editor can both change and delete rows. To stop the agent from deleting, turn off the Delete rows tool or set it to Ask first.

Web search and Open web pages can’t ask first. Turn them on only if the agent needs them.

Assign rows to the agent

To assign rows to an agent, turn on Allow assigning identities in a Collaborator field’s settings. It’s off by default.

The agent knows which identity it is, so instructions like “Handle the support requests assigned to you” work. To start it without anyone chatting, add a trigger:

  • A Periodic trigger with an opening message such as “Handle the open requests assigned to you.”
  • A Row comment is posted trigger that only starts when a comment mentions the agent’s identity.

Approve steps before they run

When a tool is set to Ask first, the agent pauses and shows the step with its inputs. You can:

  • Approve or Reject each step, or Approve all or Reject all when several are waiting.
  • Add a reason when you reject. The agent reads it and adjusts.
  • Always approve: approve now and let the agent use this tool without asking again. This turns off Ask first for that tool, for everyone. Only people who can change the agent’s settings see it.

Who can decide depends on the conversation:

  • In a private conversation: you, and anyone you invite with Ask for approval.
  • In a shared or triggered conversation: everyone allowed by Who can approve tool calls.

To find waiting steps:

  • A counter next to the agent in the sidebar shows how many steps are waiting.
  • In the agent, the needs a person button lists them across conversations. Decide them there, or open their conversation.

Decisions update live for everyone viewing the conversation. Waiting steps don’t send email or in-app notifications.

Review what the agent did

In your tables

Changes the agent makes in Baserow show its identity in row history and in the Created by and Last modified by fields. Row history doesn’t show who asked for a change. To find out, open the conversation.

In the audit log

The audit log needs Advanced or Enterprise.

  • Workspace admins: open the workspace menu in the sidebar and click Audit log.
  • Instance admins: go to Admin tools › Audit log, which also filters by workspace.

It records two kinds of events:

  • What people did with agents: conversations and messages, approvals, sharing, and every change to agents and identities. For example, Update agent configuration covers changes to Run as and to the tools, and Update agent permission covers the Permissions section.
  • What agents did: every change their identity made, such as created rows or new fields, with the identity as the actor.

Filter by:

  • Actor: a person or an identity.
  • Event Type
  • From Date and To Date

Click Export to CSV to keep a copy or analyze it elsewhere.

Keep your agent safe

  • Give the identity the least access that works: start from No access and add only the databases, tables and views it needs.
  • Avoid the Admin role for identities.
  • Keep Ask first on for tools that change data or reach outside Baserow.
  • Remember that everyone who can chat with the agent can read what its identity can read. This includes visitors of its public chat or website widget.
  • Remember that anyone with access to the agent can read shared and triggered conversations, including the data the agent read in them.
  • Check which identity a new agent got from the wizard, and its role.

FAQ

Can I control who can use an agent? Yes. Give people a role on the agent, and narrow it with Who can chat. See Who can do what with the agent.

Do agents have access to my workspace by default? It depends on who created the agent. When an admin uses the creation wizard, it creates a new identity with the Builder role on the whole workspace, or Viewer for read only. For other members, the agent starts with no workspace access. You can change the identity in Workspace access › Run as.

Does the agent use my permissions? No. It always works as its identity, whoever chats with it. Your access doesn’t limit it, so give the identity only what the agent needs.

What is an identity? A workspace member that isn’t a person. It can’t sign in, doesn’t use a seat during the beta, and is managed by workspace admins in Workspace settings › Identities.

Can I restrict an agent to specific databases or tables? Yes, with Advanced or Enterprise. Give its identity No access on the workspace and a role only where it’s needed. See Give the identity roles.

Can I assign rows to an agent? Yes. Turn on Allow assigning identities in a Collaborator field, then assign rows to the agent’s identity.

Can an agent make changes without approval? Only with tools that don’t ask first. Set Ask first on every tool that should wait.

Who can approve an agent’s steps? Everyone allowed by Who can approve tool calls: Editors and higher by default.

Can I see what an agent changed? Yes. Its identity appears in row history, in Created by and Last modified by fields, and in the audit log.

Can I use AI agents in a self-hosted Baserow installation? Yes. AI agents are available in self-hosted Baserow from version 3.0.