Guide

How to give AI agents identities and permissions

Agents should not borrow human logins or share service accounts. Give each one its own identity, scoped permissions and short-lived credentials.

By iFortis Worldwide ResearchPublished Updated 3 min read

On this page

SummaryGive every AI agent its own identity in your directory, with a named owner, least-privilege permissions scoped to its role, and short-lived credentials issued at run time. When an agent acts for a user, pass that user context through so the agent can never do more than the person could.

The problem with borrowed access

Early agent projects often run on a shared service account or on the credentials of the developer who built them. It works in a pilot. In production it means no one can say which agent did what, permissions are far wider than the task needs, and removing one agent risks breaking five others. Identity is the foundation for every other control: limits, logging and audit all depend on knowing who acted.

One identity per agent

Register each agent as a non-human identity in the same directory that holds staff and service identities. Give it the attributes you would give a person.

  • A unique identifier that appears in every log line it generates.
  • A business owner and a technical owner.
  • A stated purpose and the environment it runs in.
  • A review date, after which access lapses unless renewed.

Separate identities for development, test and production. An agent that is copied to handle a second process gets a second identity, not a wider version of the first.

Permissions that follow the role

Start from zero access and add only what the test scenarios need. This is zero trust applied to software that makes its own choices.

  • Grant access to specific tools and operations, not to whole systems.
  • Split read from write. Many agents need to read widely and write in one place.
  • Scope by data as well as function: this business unit, these record types, these fields.
  • Add conditions: value thresholds, working hours, source network, task type.

Enforce permissions at the tool gateway or in the target system. A line in the prompt that says "do not access payroll" is guidance to the model. It is not access control.

Acting on behalf of a person

When an agent serves a user, two identities are in play. The safe pattern is delegation: the agent carries a token that represents both itself and the user, and each downstream system checks the intersection of their rights. The agent can then never retrieve a document the user could not open, and never take an action the user could not take.

For agents that work on their own, such as overnight reconciliation, there is no user to borrow from. Their permissions must be tighter still, because nobody is watching each request.

Credentials without standing secrets

  • Issue short-lived tokens at the start of a task and let them expire with it.
  • Keep secrets in a vault. Never place keys in prompts, configuration files or model context, where they can leak into output and logs.
  • Have the tool layer attach credentials, so the model never sees them.
  • Rotate anything long-lived on a schedule, and immediately after an incident.

Agents calling other agents

In multi-agent designs, identity must survive the chain. Each call should carry who started the task, which agent is asking and under what authority. Do not let a low-privilege agent ask a high-privilege agent to do what it cannot do itself. The receiving agent, or the gateway in front of it, should check the original requester. This is the confused deputy problem, and it is the most common privilege escalation route in agent systems.

Lifecycle and review

Treat agents like joiners, movers and leavers.

  • Joining. Access is requested, approved by the owner and recorded.
  • Moving. A change of role triggers a fresh review, not an added grant.
  • Leaving. Retirement revokes the identity, tokens and tool registrations on the same day.

Run access reviews on agents as you do on staff. Compare what each identity is permitted to do with what the logs show it used, and trim the difference. Unused permissions are risk with no return.

Done well, identity makes the rest of AI governance enforceable. Each action is attributable, each limit has something to attach to, and one switch disables one agent. Our trust centre sets out how we apply these principles.

All insights RSS feed

Tell us the outcome you need

The first meeting is a working session about your situation, with an engagement lead, not a sales call.

Contact us Submit an RFQ