NorthPeakCloud
A padlock over lines of code

Guide · 2026

Is your Entra ID ready for AI agents?

AI agents don't just authenticate through Microsoft Entra ID — they use it to work out who should see what, who reports to whom, and which context applies to a given request. If your directory has stale group memberships, orphaned accounts or inaccurate reporting lines, agents inherit those inaccuracies and act on them at machine speed, across the whole organisation. This is the unglamorous prerequisite most AI agent rollouts skip, and the one that causes the most damage when they do.

Photo: Pixabay
Azure AI Foundry specialists
FinOps cost engineering
Fixed-price foundations
UK · US · Canada
Key takeaways
  • Agents use Entra ID for more than login — group membership and reporting lines determine what data an agent can see and who it routes decisions to, so directory errors become access errors at machine speed.
  • Four things are worth auditing before any agent deployment: stale group memberships, orphaned accounts, inaccurate reporting relationships and unreviewed service accounts.
  • A human with the wrong group membership might stumble into a SharePoint site they shouldn't see; an agent with the same error will systematically access that data every time it runs.
  • Budget around six months for meaningful identity remediation — it's typically slower than the AI build itself, so it needs to start before the agent project, not alongside it.

Identity is more than authentication once agents are involved

For a human user, Entra ID mostly answers one question: are you who you say you are. For an AI agent, it answers several more: what should this request be able to see, who does this decision route to, and which part of the organisation does this context belong to. Systems like Microsoft 365 Copilot and any custom agent built on Azure AI Foundry lean on group membership, reporting lines and access policies to make those calls — not just to log someone in.

That means every inaccuracy already sitting in your directory becomes a live decision an agent makes, repeatedly, at machine speed.

What actually breaks

This isn't a new problem — Active Directory and Entra ID hygiene has been a standing audit finding in most organisations for two decades. What's new is the consequence. A human with a stale group membership might occasionally stumble into a SharePoint site they shouldn't have access to, notice, and back out. An agent with the same stale group membership will systematically access that data every single time it runs, because it doesn't know to be surprised.

The same applies in the other direction. An agent that routes approvals using the organisation chart will send them to the wrong person if reporting lines in Entra don't match reality. An agent grounded in your own content, built to understand "the language of the business," will build a wrong model of the business if the identity data it learns from is wrong — and it will apply that wrong model consistently, not occasionally.

The four-point audit

Before any agent deployment touches production data, audit:

  1. Stale group memberships. Access granted for a project, a role, or a manager that ended months ago and was never revoked.
  2. Orphaned accounts. Accounts for people who've left, contractors whose engagement ended, or service principals nobody remembers creating.
  3. Reporting relationships. Whether the manager field and org hierarchy in Entra actually match the real structure — most enterprises drift here faster than anyone updates the directory.
  4. Service accounts. Whether every service account still has a documented owner and a justified scope, or whether it's been running unreviewed since the last compliance scare.

None of these are AI-specific problems. All of them become AI-specific risks the moment an agent starts making decisions based on them.

Timeline: start this before the agent project, not alongside it

Identity remediation is slower than any other part of an AI agent build. Cleaning up group memberships, verifying reporting lines and auditing service accounts across a real enterprise directory typically takes around six months to do properly — not because the individual fixes are hard, but because verifying "is this correct" at scale requires the business, not just IT, to confirm it.

The organisations that get this right start the identity audit in parallel with — or ahead of — scoping the agent use case, so the directory is fit for purpose by the time the agent is ready to go live. The ones that get it wrong build the agent first, deploy it against a directory nobody has looked at properly in years, and discover the access problems in production.

Getting help

Identity readiness is one of the three foundations — alongside network isolation and cost control — that we put in place as part of an AI landing zone engagement, before any agent touches production data.

Related: AI agent governance maturity model, Azure AI Foundry: a practical guide and Azure AI Foundry consultancy.

Questions

Asked and answered.

Why does Entra ID hygiene matter for AI agents specifically, not just security in general?+

Because agents actively use directory data to make decisions — which employees an approval routes to, which documents a query should surface, which context applies. A human with an access error might stumble into the wrong place occasionally; an agent with the same error applies it systematically, every time it runs, across the whole organisation.

What should we audit in Entra ID before deploying AI agents?+

Four things: stale group memberships that no longer reflect real access needs, orphaned accounts that should have been disabled, reporting relationships that don't match the real organisation chart, and service accounts nobody has reviewed since the last compliance check.

How long does identity remediation take before we can safely deploy agents?+

Plan for around six months for meaningful remediation on a directory with real accumulated debt — most enterprise directories have it, after two decades of use. Start the identity audit before the agent project, not alongside it, because it's typically the slower workstream.

Get in touch

Let’s get you AI-ready.

Tell us what you’re trying to do with AI on Azure — a couple of sentences is plenty. You’ll get a reply within one working day with clear next steps. No obligation, UK, US and Canada welcome.