An AI agent can inherit more access from a connected account than its task requires. Before connecting it or expanding its role, check what the account can actually read and change.
Start with an access register. The business owner defines the task and its limits, while an administrator or supplier shows what each connection permits and how to remove it. That evidence gives them a basis for deciding whether to connect the agent, narrow the design or hold it back.
Start with the task and the information it needs
Consider the hypothetical supplier certificate check in our guide to what an AI agent needs inside a business. The agent reads an approved supplier register and certificate folder, then creates a draft item in an internal review queue. A person checks the item and decides what happens next. The agent doesn't need to email suppliers, change their status or approve compliance.
The operations lead owns the task and identifies the records needed. A designated reviewer has authority to act on the draft. That authority is separate from the technical ability to create or alter a queue item. Our guide to where human approval belongs helps define that decision.
List the resources and fields the task needs. An application name alone is too broad, and read-only access can still expose confidential information. If a folder contains contracts or personal details alongside certificates, access to the whole folder may be too broad. Decide which sources are authoritative and who maintains them as part of getting business knowledge ready for AI.
Compare the required access with the actual grant
The register below uses hypothetical systems, grants and evidence. It is not a customer configuration or a set of test results. For each resource, the owner and administrator need to compare the task requirement with the actual grant and record how they will verify and remove it.
Supplier register. The task needs read access to relevant supplier and renewal fields. Assume the actual grant is scoped read access. The evidence would be the grant configuration plus tests of allowed and excluded records. The operations lead owns the data and the administrator can remove the grant.
Certificate folder. The task needs access to approved certificates. Assume the agent inherits a broader read grant from a parent folder. Inspect the inherited role and test an excluded folder. The records owner approves the scope and the administrator narrows or removes the parent grant.
Review queue. The task needs permission to create draft items only. Assume draft creation is granted. Inspect the action permissions and test both creation and prohibited changes. The queue owner approves the grant and the administrator can remove it.
The inherited folder grant is a reason to hold the connection until it's narrowed and verified. If the product can't restrict access to the intended files, consider separating the approved certificates into a suitable location or redesigning the task. A name such as “read-only” doesn't establish which records are visible.
For each row, record the identity used, including any service account or user-delegated access, and follow the connection into downstream tools. Ask whether a connector uses its own credentials or acts with a person's permissions. A seemingly narrow grant in each system may combine into broader effective access across the workflow. Microsoft's least-privilege guidance for agents describes this accumulation and the need to examine the combined scope. Its specific identity features are platform-dependent.
Ask the administrator to demonstrate the boundaries
A role name or a supplier's assurance doesn't establish effective access. Ask to see the configuration, inherited roles and resource scopes that show what each identity and connection can reach. Record that evidence, its date and any uncertainty in the register, including whether each product can enforce the restriction at the level required.
Agree controlled tests using authorised, non-sensitive test resources. The expected results below are a test plan, not observed outcomes:
- The agent can read an approved test certificate and create a draft review item.
- It is denied access to an out-of-scope test record and cannot change or approve an existing item.
- A downstream tool cannot use another identity or connection to reach the excluded record or perform the prohibited action.
Have the administrator investigate unexpected success as well as unexpected failure. A test covers the paths and conditions exercised, so inspect the underlying grants and repeat relevant tests when the design changes. If a product can't provide a convincing demonstration, record that limitation and decide whether a narrower design is possible.
Instructions to the agent are useful for describing its task, but access controls must be enforced by the connected systems. A certificate could contain instructions intended to redirect the agent. OWASP's AI agent security guidance describes prompt injection and excessive tool privileges as risks and recommends limiting tool access. Restrictions reduce the possible impact, though they don't guarantee safe behaviour.
Assign ownership and prove removal
Give the register a business owner who can decide whether the access remains justified and a technical administrator who can change it. Record who approves each grant, who can remove it and how to contact them. Review it when the task, staff, connected tools or required scope changes, and set a regular review appropriate to the business.
Where supported, a distinct agent identity and audit records can help show which identity performed an action. Microsoft's agent identity architecture guidance describes such capabilities for its platform. Confirm what each product actually records and who reviews those records. A log helps investigation. It doesn't itself prevent an action.
In an appropriate test environment, ask the administrator to remove the grant and demonstrate that access stops. Check inherited paths, delegated access, downstream connections and any remaining tokens according to each product's behaviour. Revoking one connection may not immediately invalidate every credential or remove copies of data already obtained. Document the removal procedure and its limits. The international guidance on careful adoption of agentic AI services, co-authored by Australia's cyber security agencies and international partners, recommends managing privileges and credentials throughout an agent's lifecycle. Its scope includes critical infrastructure and defence as well as wider organisational risks.
If the effective scope, attribution or removal path can't be established, leave the connection disabled while the owner and implementer resolve it. Once the access design is ready, check the wider workflow before routine use, including its outputs and exceptions.
Make the access decision
Approve the connection only when the demonstrated grants support the task, the business accepts the remaining exposure, and named people can maintain and remove the grants. Even a well-scoped connection carries residual risk. If the evidence is insufficient, narrow access or change the workflow before proceeding.
Ask your implementer to complete the register for one agent and demonstrate an allowed action, a denied action and removal. Use that evidence to decide whether the connection is ready.
