New Tool Radar

AI Agents & Automation

How to Give Each Agent Role Only the Permissions It Needs

Set least-privilege permissions per agent role, so a research agent cannot refund a customer by accident.

Schematic illustration with three step boxes: list roles and actions, grant the minimum, and test a denied action.

Each agent must have a distinct identity, not a shared service account, so that every action can be traced to a specific agent and its owner. Least privilege means each role gets only the permissions its job needs: a research agent reads, a support agent refunds up to a limit, and no agent gets a permission it never uses. A shared deploy token for convenience is the failure to avoid.

Before you start

An agent platform where roles and permissions can be set per agent, and a list of the agents and what each one does.

List the roles and their actions

Write down each agent role and every action it needs: read the knowledge base, look up orders, draft replies, issue refunds, send emails. Be specific: read ticket is not the same as rotate credential.

Mark the irreversible actions separately: they need approval as well as permission.

Grant the minimum per role

Give each role exactly the permissions on its list and nothing else. Use a distinct identity per agent, so the audit log shows which agent acted, not a shared account.

Set the limits in the permission, not in the prompt: a refund limit of $50 belongs in the role, because the model cannot be trusted to enforce its own limit.

Test a denied action

Have each agent try an action outside its role, such as the research agent issuing a refund, and confirm it is denied with a clear error. Log the denial.

Review the permissions monthly: roles drift as agents gain new jobs, and a permission granted for one job can linger after the job ends.

Practice check: fictional Maple Corner agents, 3 roles

The table below is fictional practice material, worked out by hand from the stated roles. It is the expected result for the practice setup, not a run of any agent.

Role Allowed actions Denied test Verdict
Researcher Read docs, search web Refund denied Pass
Support agent Lookup, draft, refund up to $50 Delete denied Pass
Escalation agent Read tickets, assign Send email denied Pass

Each role passes its denial test: the researcher cannot refund, the support agent cannot delete, and the escalation agent cannot send email. The permissions match the jobs.

Expected result. UNTESTED: the roles in the practice table are worked out by hand, not measured by running an agent. List your own agent roles and their actions, grant the minimum per role, and test one denied action per role.

Limits

  • A shared service account hides who acted: give each agent its own identity.
  • Permissions belong in the platform, not in the prompt: the model cannot enforce its own limits.

Sources

See all