Identity and Security
Session 7.1: agent-level authentication, the security scan, Entra Agent ID, and how far a DLP data policy's reach extends.
Identity and Security: Authentication, Agent Identity, and Data Policies
6.5 closed Group 6 by naming a risk it couldn't resolve: Meridian Freight sits inside Northwind's orchestrator, but Northwind doesn't own or host it, so the privilege-escalation question isn't "will a subagent overreach" — it's "what happens to Northwind's own conversation once it's sitting on someone else's server." This session is where the actual levers for that question live: who's allowed to talk to an agent at all, what identity the agent itself carries once it exists, and what an admin can wall off before any of it gets a chance to matter.
Who's allowed to talk to the agent
Every Copilot Studio agent has one agent-level authentication setting, configured under Settings → Security → Authentication. There are three options, and picking one is a bigger decision than it looks — it decides which channels the agent can even be published to, not just how sign-in feels. [1]
No authentication
No sign-in required. The agent can only access public information — no restricted data.
Any channel a link can reach
None — anyone with the link can chat. Can't restrict to specific org users.
Authenticate with Microsoft
Automatic Entra ID SSO — no manual setup. Users already signed in to a Microsoft client aren't prompted again.
Teams + Microsoft 365 only (plus native/custom app channels)
Always signed in, so "Require users to sign in" is on and can't be turned off — agent sharing controls who in the org can chat.
Authenticate manually
Maker configures the identity provider explicitly: Entra ID V2 (federated credentials, certificates, or client secrets), classic Entra ID, or any Generic OAuth2 provider.
Any channel, including non-Microsoft ones
With Entra ID: agent sharing controls org access. With Generic OAuth2: any signed-in user can chat, but you can't restrict to specific org members through sharing.
Only Authenticate manually exposes User.AccessToken and User.IsLoggedIn as topic variables — Authenticate with Microsoft gives you User.ID and User.DisplayName only. If a topic needs an actual token to call a downstream service on the user's behalf, manual authentication is the only one of the three that provides it. [1]
The scan that catches you loosening the defaults
Copilot Studio runs an automatic security scan before every publish. It doesn't evaluate everything about an agent — it watches for exactly three specific moves away from a secure default, and warns the maker when it sees one: [2]
Authentication set to No authentication — the default is Authenticate with Microsoft; switching away from it is what triggers the warning, not using No authentication on a bot whose type already defaults to it.
Credentials to use set to Maker-provided credentials, on a connector or flow — the default is end-user credentials. This is the exact setting 4.1 taught as a maker-vs-user-credentials choice for connector tools; the scan is watching that same toggle.
Sharing the agent with everyone in the organization — the default is shared with no one.
The scan is narrow on purpose: it's a maker-facing nudge on three specific, well-understood risk levers, not a general security audit. Everything past those three settings is covered by the other two systems in this session, not by the scan.
Every agent already has an identity, before you configure anything
The moment you create a Copilot Studio agent, Microsoft Entra creates an Agent ID for it — no app registration, no manual SDK setup. That identity is what makes the agent visible in the Agent 365 registry and targetable by Entra governance tools. [3]
Two things that are easy to get backwards:
Creation timing: the Agent ID is created at agent-creation time, not at publish. Publishing makes the agent reachable to users; the identity already existed before that, from the moment the agent itself was created.
The blueprint is shared, the Agent ID isn't: a pro-code agent gets its own individual blueprint. Every Copilot Studio app-based agent in a tenant — Northwind's orchestrator, Billing, Product-Support, all of them — shares one common blueprint, while each still gets its own distinct Agent ID. That shared-blueprint model is what lets DLP policies and advanced connector policies apply automatically across every Copilot Studio agent in the tenant without per-agent blueprint setup.
Once an agent is published, Copilot Studio attaches API permissions to its Agent ID for each Power Platform connector the agent uses. Admins can review those permissions in the Entra admin center and target the Agent ID directly with Conditional Access policies — the same governance surface used for human user accounts, now reachable for an agent. [3]
This means every one of Northwind's five agents from Group 6 already has its own Agent ID sitting in the tenant, whether or not anyone in 6.1 through 6.5 ever opened the Entra admin center to look. Identity provisioning isn't something Group 6 skipped — it happened automatically, in the background, on every one of those agents the moment each was created.
Walling off data before an agent can touch it
Authentication and identity answer "who's this, and who let them in." Data loss prevention (DLP) answers a different question entirely: regardless of who's asking, what is this agent never allowed to reach at all. Admins configure DLP as data policies in the Power Platform admin center, applied to an environment, environment group, or the whole tenant. [4]
Every Copilot Studio connector gets classified into one of three data groups — Business, Non-business, or Blocked — and connectors in the same policy have to share a data group, since data can't move between connectors sitting in different groups. Connectors introduced after 2019 default into the Non-business group if nobody explicitly classifies them, and many organizations block that group outright — which is why a newer connector can turn up unexpectedly blocked in a tenant that never touched it on purpose. [4]
A data policy can enforce, in real time, with an error shown to the maker or the end user on violation: [4]
Requiring user authentication (blocking the "No authentication" path outright, tenant-wide)
Blocking specific knowledge sources (SharePoint/OneDrive, public websites, uploaded documents)
Blocking Power Platform connectors used as tools (4.1)
Blocking HTTP requests (4.3's Send HTTP Request node)
Blocking skills
Blocking publication to specific channels
Blocking event triggers (5.1's autonomous trigger mechanism)
Applying it to Northwind
Northwind's support agent talks to retail customers on a public website — not Northwind employees signed in with a work Entra account. That rules out Authenticate with Microsoft immediately: it only unlocks the Teams + Microsoft 365 channel, and a retail customer browsing Northwind's site has no Entra ID identity to authenticate with in the first place. The realistic choice is Authenticate manually with a Generic OAuth2 provider tied to Northwind's own customer-account system — letting a signed-in customer's User.AccessToken scope an order lookup to their own orders only, the same "restrict to what this specific user should see" job 4.1's end-user-credentials setting does one layer down, at the tool level rather than the whole agent.
Agent-level authentication
Can this person start a conversation with the agent at all?
Settings → Security → Authentication
7.1 (this session)
Tool-level authentication
Once they're talking to the agent, whose credentials does this specific tool call run as?
Per-tool Details tab, Agent author vs. User authentication
4.1
They're easy to conflate because both use the word "authentication," but they gate two completely different moments — one at the front door, one at each individual tool call once someone's already inside.
The full picture
Check your retrieval
Northwind wants its public support agent to let a signed-in customer's tool calls carry an access token so an order-lookup tool can scope results to that customer only. Which agent-level authentication option makes that token available as a topic variable?
No authentication
Authenticate with Microsoft
Authenticate manually
None of the three expose an access token
Authenticate manually. Only this option exposes User.AccessToken and User.IsLoggedIn as topic variables. Authenticate with Microsoft only provides User.ID and User.DisplayName; No authentication provides no user identity at all.
A maker inherits an older classic chatbot that turns out to require no sign-in at all. Is this a misconfiguration?
Yes — every Copilot Studio agent defaults to requiring authentication
No — classic chatbots default to No authentication, while the newer standard-harness agent type defaults to Authenticate with Microsoft
Yes — No authentication is never a valid default for any agent type
It can't be determined without checking the security scan
No. Two genuinely different defaults exist side by side in the same product: classic chatbots default to No authentication, while agents built on the newer standard harness (the type this course has used since 1.1) default to Authenticate with Microsoft.
When is a Copilot Studio agent's Entra Agent ID actually created?
At publish time, when the agent becomes reachable to users
At agent-creation time — before any authentication setting is even configured
Only after an admin manually registers the agent in Entra
Only once the agent uses its first Power Platform connector
At agent-creation time. Identity provisioning happens at agent-creation time, not publish. Publishing makes the agent available to users, but its Entra Agent ID already exists by then — created automatically the moment the agent itself was created.
This session's own research on data policies (DLP) found a gap. What is it?
DLP policies can't be applied to more than one environment at a time
The documented list of what a data policy can block doesn't include "block a connected/Foundry/A2A/Fabric agent connection," so whether DLP reaches Group 6's five connection types isn't confirmed either way
DLP policies only apply to classic chatbots, never to standard-harness agents
There is no gap — the documentation explicitly confirms DLP blocks all five of Group 6's connection types
The second option. The seven documented common use cases for a data policy are all mechanisms from Groups 1–5 of this course. None of them is phrased as gating an agent-to-agent connection, so whether a data policy can wall off Meridian Freight's A2A link or the Foundry/Fabric connections is an open question this session flags rather than assumes.
Reflection
Read next: Key concepts: Copilot Studio security and governance — the synthesizing overview that ties authentication, DLP, Agent 365, and audit logging into one map; several of its named controls (Customer Lockbox, Conditional Access via Agent 365, environment routing) are threads this session only opened.
Configure user authentication in Copilot Studio — the three agent-level authentication options, their channel and variable differences, the classic-chatbot default, and the manual-authentication field reference.
Automatic security scan in Copilot Studio — the three specific settings the pre-publish scan watches for.
Agent identity integration for Copilot Studio — Entra Agent ID creation timing, the shared-blueprint model, and connector-permission attachment.
Configure data policies for agents — data groups, the seven common data-policy use cases, and real-time enforcement; also the source for the "Authenticate with Microsoft is on by default for new agents" fact used in this session's default-mismatch callout.
Key concepts: Copilot Studio security and governance — the synthesizing overview referenced for Conditional Access via Agent 365 and Customer Lockbox scope, and named above as the next read.