Duikerkloof Mutual, the fictional East London insurer from part 1, found its first real problem before its operations agent had taken a single action. During a routine access review, the security team traced a scaling change on the claims platform to an account called svc-automation. The account was used by three deployment scripts, a scheduled clean-up job, a runbook written by a contractor who had left in 2025, and now the agent's pilot.
Nobody could say which of the six had made the change. The change was harmless. The question was not.
A shared service account is convenient because it collapses many actors into one set of credentials. That is exactly what makes it useless for accountability. The log shows an account, not an actor, and the account belongs to nobody in particular.
Every agent that can act needs its own identity, a named human sponsor who answers for it, and a boundary that limits what that identity can reach, recorded together so that any action can be traced to one agent, one version and one person.
Why shared accounts and anonymous bots fail
Three things go wrong when agents borrow identities.
Attribution fails. If an agent runs on a person's token, its actions look like that person's. If it runs on a shared service account, its actions look like everyone's. Either way, an investigation starts with a guess.
Revocation fails. To stop one misbehaving agent, you must revoke a credential that other systems depend on. Teams hesitate, and the agent keeps running.
Least privilege fails. A shared account accumulates the union of every user's needs. The agent inherits rights that no single task requires, which is the "excessive permissions" root cause that OWASP lists under LLM06:2025 Excessive Agency.
CloudNala's earlier article Agent capability is not agent authority asked "under whose name?" for a single action. This part turns that question into a record every agent must have before it is switched on.
The six controls
The decision tool for this part is the agent identity record. One record per agent, not per product, filled in before go-live and kept after retirement.
| Control | What it means | Evidence a reviewer can check |
|---|---|---|
| Workload identity | The agent authenticates as itself, with credentials no person or other system uses. Prefer platform-issued credentials without stored secrets | The identity's object ID; sign-in logs showing only this agent |
| Accountable sponsor | A named person, not a team, who answers for what the agent does and approves changes to its boundary | Sponsor name and deputy; date of last attestation |
| Least privilege | Rights match the action classes in the boundary map from part 1, nothing more | Role assignments compared with the map; unused rights removed |
| Environment boundary | Separate identities, or separate scopes, for development, test and production | No production rights on the development identity |
| Tool allowlist | The tools and connectors the agent may call, by name and version | Allowlist in configuration; calls to anything else blocked and logged |
| Version and policy record | Model, instructions, tools and policy versions in force at each point in time | A change history linking each version to a date and an approver |
Two distinctions inside the table matter more than they first appear.
Autonomous or delegated. An agent can act with rights granted to the agent itself, or on behalf of a user with rights the user delegates. Both are legitimate, but the record must say which applies to each action class, because the forensic question "who acted?" has a different answer. A delegated action needs both names in the log.
Sponsor or creator. Whoever built the agent is not automatically the right sponsor. The sponsor should be the person who owns the business outcome the agent serves, with the authority to pause it. The builder is a contact; the sponsor is accountable. Series 13 of CloudNala Insights, Stop Counting AI Pilots, includes an agent accountability card that covers the sponsor role from the business side.
Four further fields make the record usable when something goes wrong:
- Human escalation point. The named role the agent and its users hand over to, in and out of working hours.
- Versioned intent. A short statement of what the agent is for and what it is not for, versioned with its instructions, so a reviewer can test an action against the purpose in force at the time.
- Evidence for consequential actions. The records the agent must keep for every action that needs approval, as set out in part 3.
- Support boundary. Who supports the agent, the platform and each integration, and where one party's responsibility stops.
One product example
Microsoft Entra Agent ID is one implementation of these ideas. Microsoft's documentation, What are agent identities? (page dated 5 November 2026, checked on 24 November 2026), describes identity accounts in Entra ID built for agents, distinct from human users and from ordinary application identities. It says agents can use access rights granted directly to the agent identity, or act on behalf of users with delegated rights. It gives Copilot Studio as an example in which the user who creates an agent is recorded as its sponsor, and says authentication by such agents is logged as AI agents. The same page says Agent ID is available for all Entra customers, and that extending Entra security features to agents requires a Microsoft Agent 365 licence. Azure managed identities remain the usual way for Azure workloads to get credentials without stored secrets. Microsoft's Ignite 2026 post lists Entra Agent ID support for Azure SRE Agent as a public preview.
These are provider claims, and the licensing and preview positions will change. More importantly, Entra Agent ID is one design, not the design. AWS IAM roles, Google Cloud service accounts and open workload identity standards can carry the same six controls. Whatever platform you use, check that it gives you a distinct identity per agent, logs that name it, a sponsor field or equivalent, and revocation that affects only that agent. Where a platform cannot record a sponsor, record it in your own agent register and link the two.
The boundary is more than a role assignment
Rights in the identity platform are necessary, not sufficient. The boundary also includes:
- Network reach. Which endpoints the agent's runtime can connect to at all.
- Data scope. Which records it can read, including retrieval that respects the user's permissions, as CloudNala described in permission-aware retrieval.
- Budget. Limits on tool calls, tokens, time and money per run.
- Time. Credentials that expire, and access that can be granted for a window rather than permanently.
Identity before intelligence covers who may call the model. The agent identity record covers what the agent may do once it has an answer.
The record must outlive the agent
Agents are retired, rebuilt and replaced more often than applications. Microsoft's documentation makes the same point about agents that exist for minutes. For forensic readiness, this creates a trap: if an agent's identity is deleted along with its record, every past action points to an identity that no longer explains itself.
Keep three things after retirement, for as long as your records policy requires: the identity's identifier and display name, the sponsor at each point in time, and the version and policy history. Revoke the credentials immediately. Keep the record. Duikerkloof added a rule that no agent identifier is ever reused, so an old log entry can never be confused with a new agent.
What this means for South Africa
Shared service accounts are common in South African estates that grew through acquisitions, outsourcing contracts and long-lived integration platforms. Untangling them is unglamorous work, and agents make it urgent. A useful first step is an access review that lists every non-human identity with write access to production, its owner, and every system that uses it. Any agent found on that list sharing an identity should be split out before its authority grows. Where agents process personal information, a clear owner and an access record per agent also support the accountability and security safeguards the Protection of Personal Information Act expects. This is general information, not legal advice.
Before you approve a new agent
- Create a dedicated identity per agent and per environment; no shared secrets.
- Name a sponsor and a deputy, and require them to attest quarterly.
- Map role assignments to the boundary map's action classes and remove the rest.
- Publish the tool allowlist and block everything else at the gateway or harness.
- Record model, instruction, tool and policy versions with dates and approvers.
- Write the retirement procedure: revoke credentials, keep the record, never reuse the identifier.
- Record the escalation point, the versioned intent and the support boundary.
Next in the series: Approval is a system, not a button. Previous: Part 1, When a copilot becomes an operator. All parts are on the series page.
Sources and limits: Microsoft Entra Agent ID and Azure SRE Agent statements are provider claims from Microsoft Learn and Microsoft's Ignite 2026 post, checked on 24 November 2026; licensing and preview status change and must be re-checked before you rely on them. Duikerkloof Mutual is fictional. Statements about POPIA are general information, not legal advice.
How CloudNala can help
CloudNala reviews non-human identities before agents are given authority. We list every service account and agent with production access, split shared identities, write an agent identity record per agent with its sponsor, rights, environments, tools and versions, and test that revoking one agent stops that agent and nothing else.
Work with CloudNala
CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.
Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.
Book an Agent Accountability and Forensic Readiness Assessment or write to us at consult@cloudnala.co.za