How to Control What an AI Agent Can Access and Do

· DoubleX

Quick answer

Control an AI agent by giving it the least access it needs: choose which systems each agent can use, turn on only the actions it requires in each system, keep read-only where possible, and require confirmation before changes. In DoubleX IA OS, you set this per agent and review it in the task history.

An AI agent is only as safe as the access you give it. An agent that can read every inbox, edit every spreadsheet, and delete files is a bigger risk than one that can only look up a few records. The good news: you can design permissions the same way you would for a new employee, starting small and widening only when there is a reason.

Why should every agent have minimum access?#

Every agent should have only the access its job requires, because anything it can reach is something that can go wrong through a bad instruction, a misread email, or a simple mistake. This idea is called least privilege: grant the smallest set of systems and actions needed for the task.

Think in terms of the job, not the tool. An agent that summarizes the sales pipeline each Monday needs to read your CRM. It does not need to send email, edit contacts, or open the finance folder. Splitting work across several focused agents, each with narrow access, is safer than one agent that can do everything.

How do you choose the systems each agent can use?#

Start from the agent's task and list the systems it must touch to finish it. Connect only those, and leave everything else unconnected for that agent.

In DoubleX IA OS, a connector is a system linked to the platform, and each agent uses only the connectors you choose for it. A connection can also be personal (valid only for you, like your own mailbox), shared with a team, or shared with the company. Use that to keep personal access personal.

Agent jobSystems it needsSystems to leave out
Weekly sales summaryHubSpot, Google SheetsGmail, Google Drive
Meeting follow-up draftsFireflies, GmailCRM, finance tools
Monthly payment reportStripeSlack, Gmail
Support triageIntercomDatabases, Google Drive

How do you limit the actions in each system?#

Inside each connected system, you choose which actions the agent may perform. Reading, searching, drafting, sending, editing, and deleting are different levels of risk, so you decide them one by one.

For example, with Gmail you can allow searching and reading messages and creating drafts, while leaving sending turned off. With Google Calendar you can allow checking free times but not deleting events. The principle: enable the actions that the task cannot work without, and keep the rest off.

  1. Open the agent in the Agents screen and define its instructions.
  2. Go to Connectors and link only the systems the agent needs.
  3. For each connected system, turn on the actions it needs and leave the others off.
  4. Set actions that change data to off if the agent only needs to look things up.
  5. Ask the agent to run the task, then check the result in Tasks.
  6. Add a schedule, if you want it to run on its own, once the results look right.

When should an agent be read-only?#

Keep an agent read-only whenever its job is to find, summarize, or report rather than change something. Read-only means it can look at the data but cannot write, send, or delete anything.

Good candidates are reporting, research, dashboards, and answering questions from company data. Databases are a clear case: the PostgreSQL and MySQL connectors connect in read-only mode by default, so an agent can query tables without any risk of altering them. Move to write access only when a task truly needs it, and then only for that agent.

How does confirmation before acting protect the company?#

Confirmation puts a person between the agent's decision and the real-world result. Before the agent sends, deletes, or changes something in your systems, it asks for your approval and shows the step-by-step of what it did.

This catches mistakes that permissions alone cannot, such as an email going to the wrong recipient or a record being updated with the wrong value. Used together, permissions limit what is possible, and confirmation checks what is about to happen. For more on how approval works, see human-in-the-loop AI agents.

How do you review permissions later?#

Review permissions on a regular schedule and whenever an agent's job changes, using the history of each task as evidence. Every request is saved in Tasks with the ask, each tool the agent used, and the result, so you can see who asked for what and when.

Use that history to spot access that is never used and remove it. Also check roles: the platform has owner, admin, and member roles, plus teams and sharing by person, team, or company, so you can control who can change an agent's setup. For a wider view of the topic, read how to give an AI agent access without losing control and how an AI agent accesses company systems safely. You can also see how connections work in the Connectors documentation.

Prompts you can copy#

  • "Search my email for messages from clients this week and summarize them. Do not send or delete anything."
  • "Create a draft reply to the latest message from the supplier and show it to me before sending."
  • "Read the sales sheet and list the deals with no activity in 14 days."
  • "List what you did in this task, step by step, and which systems you used."

Frequently asked questions#

Can I give different agents different access?#

Yes. Each agent has its own instructions, systems, and permissions, so a finance agent and a marketing agent can work with completely different tools and actions.

Can I stop an agent from changing data?#

Yes. For each agent you choose which systems it uses and which actions it can run in each one. Actions that change data can be left off so the agent only reads.

Will the agent act without asking me?#

Before it sends, deletes, or changes something in your systems, the agent asks for confirmation and shows what it did step by step. Everything is also recorded in the task history.

Is my company data used to train AI models?#

No. Company content is not used to train models, and requests go only to AI providers that do not use what they receive for training. See whether AI trains on your company data.

How are connection passwords and tokens protected?#

Passwords, tokens, and keys for connections are stored encrypted with AES-256-GCM. Each company also has its own database, separate from other companies.

Related guides

More Security and privacy guides