Home › Studies › SC-500 › Secure Compute › AI Data Risk & Agent ID

AI Data Risk & Agent ID

SharePoint oversharing · Purview DSPM · Copilot Studio real-time protection · Conditional Access for agents · blast radius · Agent ID access · agents in the Microsoft 365 admin center

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

SharePoint overexposure: reports and remediation

Generative AI amplifies the problem of oversharing data. In the SharePoint admin center, Data access governance (DAG) reports help you discover sites that contain potentially overshared or sensitive content. Sign in with SharePoint administrator credentials.

ReportTypeWhat it shows
Site permissions across your organizationSnapshotPermission structure across all SharePoint and OneDrive sites; sites with the broadest user access (thousands of users, external guests, "Everyone except external users")
Site permissions for usersSnapshotAll sites a specified user can access
Sensitivity label for filesSnapshotSharePoint sites that contain files with specific sensitivity labels
Sharing linksActivity (last 28 days)Sites where users recently created the most sharing links
Shared with "Everyone except external users" (EEEU)Activity (last 28 days)Sites where content is shared with all internal users; EEEU is a built-in SharePoint group of all internal users that excludes external guests

Site access review

Restricted Content Discovery (RCD)

RCD limits discovery of content from specific SharePoint sites, including recently interacted files, in organization-wide search results and Microsoft Copilot responses while permissions are reviewed. It also removes AI-powered entry points (the Copilot button, AI actions menus including creating agents, and Create pages with AI) from those sites.

SAM prerequisites

Agent access insights

The agent access insights report shows how agents access content across SharePoint and OneDrive sites, using Microsoft 365 unified audit logs. You can create reports for the past 1, 7, 14 or 28 days. You need an appropriate role such as SharePoint administrator. Without a SAM license you are asked to enable data collection first. Use the results to apply RAC and RCD.

Purview DSPM: risks from Copilot and AI apps

The current Microsoft Purview Data Security Posture Management (DSPM) covers AI apps and agents and traditional apps. The earlier "DSPM for AI (classic)" article says it is now replaced by this version. Sign in to the Microsoft Purview portal and open DSPM; don't confuse it with the classic versions.

Data risk assessments

Open them at DSPM > Discover > Data risk assessments. The insights are also surfaced from the Prevent oversharing of sensitive data objective.

ItemDefault assessmentCustom assessment
ScopeTop 100 SharePoint sites by usage in your organization (Microsoft 365 tab); Fabric tab for Fabric workspacesAll or selected users, and the data sources you choose
ScheduleRuns automatically every week; no activation neededYou run it
ResultsFirst time created: 4-day delay before results are displayedAfter it runs, wait at least 48 hours; results then don't update (duplicate it to rerun, including after the 30-day expiration)
Item-level scanning-Optional for Microsoft 365, after one-time authentication with a registered Entra app; SharePoint sites only

Remediation options on the Protect tab (Microsoft 365)

OptionWhat it does
Restrict access by labelCreates a DLP policy that prevents Microsoft 365 Copilot and agents from summarizing data that has the sensitivity labels you select
Restrict all itemsUses SharePoint Restricted Content Discovery to list sites that are exempt from Microsoft 365 Copilot
Create an auto-labeling policyFor unlabeled files where sensitive information is found, automatically applies a sensitivity label
Create retention policiesFor content not accessed for at least 3 years, uses Data Lifecycle Management to automatically delete it

The Identify tab shows how much data was scanned for sensitive information types and can start an on-demand classification scan. The Monitor tab shows items shared with anyone, with everyone in the organization, with specific people and externally, and links to a SharePoint site access review.

The classic DSPM for AI article describes custom data risk assessments as "currently in preview". The current article doesn't say this, so check the portal before you rely on it.

Real-time protection for Copilot Studio agents

Copilot Studio custom agents are secure by default, with built-in protection against user prompt-injection attacks (UPIA) and cross-domain prompt injection attacks (XPIA). Two Microsoft Learn routes add real-time protection. Where the cached page says preview, it is repeated here.

Route 1: external threat detection in Copilot Studio (prerelease documentation)

The Learn article is titled "(preview)" and says it is prerelease documentation and subject to change.

  1. Configure a Microsoft Entra application: PowerShell script (recommended) or manually. Manually: register an app (single tenant) and copy the App ID.
  2. Add a federated credential (scenario Other issuer) with issuer https://login.microsoftonline.com/{tenantId}/v2.0. The agent uses federated identity credentials, a secret-less method.
  3. In Power Platform admin center, go to Security > Threat detection > Additional threat detection, select the environment and Set up.
  4. Select Allow Copilot Studio to share data with a threat detection provider, enter the Entra App ID and the provider endpoint, and save. The save fails if the Entra app isn't configured or isn't authorized with the provider.
SymptomCause and fix
Invalid FIC issuer (AADSTS7002111)No FIC with the expected issuer. Set the issuer to https://login.microsoftonline.com/{tenantId}/v2.0
No FIC configured on the appThe app has no federated identity credentials. Configure FIC
Application isn't allowlisted with the provider (Defender specific)Grant the app webhook access as described in the provider documentation
Cannot change the configurationYou need Power Platform admin permissions

To stop data sharing, clear Allow Copilot Studio to share data with your selected provider for the environment and save.

Route 2: Microsoft Defender real-time protection

Agent typeWhat real-time protection evaluates
Agent 365 tool invocationsDefender integrates with Work IQ MCP to evaluate tool invocations before they run; agents that rely on unsupported tools or don't integrate with Work IQ MCP aren't covered
Copilot Studio agents (Preview)Tool invocations; doesn't depend on Work IQ MCP; Copilot Studio must be connected
Foundry agents (Preview)User requests, agent responses, tool invocations and tool responses
Local AI agentsEndpoint runtime protection in Microsoft Defender for Endpoint (must run in active mode; onboarded separately)

Agent 365 transition: effective July 1, 2026, AI agent security capabilities for Copilot Studio and Foundry agents require a Microsoft Agent 365 license. Existing Agent 365 real-time protection rules set to Block will stop blocking on July 1, 2026 (the page's wording); redefine them under Settings > Security for AI > Policies & rules > Real-time protection. Copilot Studio real-time protection through Defender for Cloud Apps is unchanged for tenants that continue using it.

Conditional Access and blast radius for agents

ObjectWhat it is
Agent identity blueprintTemplate for creating agent identities; holds the credentials (federated identity credentials, certificates or keys, client secrets); can only provision or deprovision agent identities. Disabling it stops all its agent identities from authenticating
Agent identityA special service principal. No credentials of its own: it relies on the blueprint to acquire tokens. Tokens are issued only in the tenant where it was created
Agent's user account (optional)A user account decorated as an AI agent, with a 1:1 relationship to the agent identity, for systems that require a Microsoft Entra user account

Conditional Access for agents extends the Conditional Access engine to control how agents access resources protected by Microsoft Entra ID. It is evaluated whenever Microsoft Entra ID issues or refreshes an access token.

If the agentAccess patternPolicy target
Accesses resources for a signed-in userOn-behalf-of (delegated)Users and groups; the user is the token subject. Selecting an agent identity doesn't cover these requests
Uses its own identity, no signed-in userApplication-only (client credentials)Agent identity or agent identity blueprint
Uses its own user accountAgent-user accessThe agent's user account (Agents > all agent users or specific agent users)

When Conditional Access doesn't apply

Blast radius analysis in Defender XDR

Blast radius analysis is a graph integrated into incident investigation. It shows possible propagation paths from the selected node to predefined critical targets, scoped to the user's permissions, and it extends and replaces Attack path analysis. Select a node in the incident graph, then View blast radius.

Learn gap: the cached blast radius article does not mention Microsoft Entra Agent ID. Treat the agent-specific view as the general incident-graph feature applied to an incident that involves an agent.

Managing Entra Agent ID access

RelationshipPurposeKey rules
OwnerTechnical administrator: setup, configuration, credentialsOptional. Users (including guests) and service principals; groups aren't supported. Can edit authentication properties, add owners and sponsors, and re-enable, restore or hard-delete
SponsorBusiness accountability for purpose and lifecycle, without technical admin accessAt least one required for each agent identity and blueprint. Users and some groups (dynamic or Microsoft 365 assigned; not role-assignable groups). Can disable, change sponsors or soft-delete; can't re-enable or restore. Max 100 sponsors, no more than 5 groups
ManagerUser responsible for the agent in the organization hierarchyCan request access packages for reporting agents; can't modify or delete agents

These relationships are separate from Entra RBAC roles such as Agent ID Administrator. A sponsor is required when you create an agent identity or blueprint; with delegated creation, the caller becomes the sponsor if none is specified, and users with Agent ID admin roles aren't made sponsor automatically.

TaskRequired role
View agent identitiesMicrosoft Entra user account; no admin role needed
Manage agent identitiesAgent ID Administrator or Cloud Application Administrator (owners can manage their own agents)
Create agent blueprintsAgent ID Developer (user becomes owner of the blueprint and its service principal)
Configure Conditional Access policiesConditional Access Administrator (Microsoft Entra ID P1)
View ID Protection risk reportsSecurity Administrator, Security Operator or Security Reader (Microsoft Entra ID P2 during preview)
Configure Lifecycle WorkflowsLifecycle Workflows Administrator

Access packages for agent identities

Limits and controls

Agents in the Microsoft 365 admin center

The Agent Registry (Agents > All agents > Registry) gives a centralized view of all agents available to your organization. Microsoft Agent 365 is described as the control plane for AI agents. Users can access only the agents you allow.

Registry typeDescription
Microsoft agentsBuilt and maintained by Microsoft
External partner-built agentsBuilt by trusted non-Microsoft developers
Published by your orgCustom agents approved and published by your organization (line-of-business)
Shared by creatorCreated and shared by individual users or developers
Agent actionEffect
Install / uninstallMake an agent ready for users without manual installation, or remove it
ActivateAllow only selected users or groups to create instances of the agent
Block / unblockRestrict access to an agent across the organization, preventing any user from using it
Delete / restore / permanently deleteDelete with a 30-day recovery window, restore, or permanently delete before the window ends
Start / stopStart or stop the underlying Azure infrastructure; unique to Microsoft Foundry agents
Assign / add / remove ownerAssign a new owner to ownerless or active agents; add or remove owners of Agent Builder agents
RoleView insights and registryInstall, modify, approve, manage
Global AdministratorYesYes
AI AdministratorYesYes
Global Reader, AI ReaderYesNo (read only for tools and settings)
Security Administrator, Security Reader, Reports Reader, User Experience Success ManagerYesNo
User Account AdministratorInsights only, not registryNo

CLI and PowerShell

TaskAzure CLIPowerShell
Restrict a SharePoint site from Copilot and org-wide search (RCD on)-Set-SPOSite -Identity <site-url> -RestrictContentOrgWideSearch $true
Remove Restricted Content Discovery from a site-Set-SPOSite -Identity <site-url> -RestrictContentOrgWideSearch $false
Create the Entra app for Copilot Studio external threat detection (script option)-.\Create-CopilotWebhookApp.ps1 -TenantId "11111111-2222-3333-4444-555555555555" -Endpoint "https://provider.example.com/threat_detection/copilot" -DisplayName "Copilot Security Integration - Production" -FICName "ProductionFIC"

Exam Tips

Tick each tip once you can answer it without looking.

“Find SharePoint sites with the broadest user access” → Data access governance: Site permissions across your organization (snapshot report); run it first. Trap: The sharing links report is an activity report (last 28 days), and the users report lists one user's sites.

“Keep a site out of Copilot answers and org-wide search during a permissions review, without changing permissions” → Restricted Content Discovery (temporary; PowerShell Set-SPOSite -RestrictContentOrgWideSearch $true). Trap: RCD doesn't change permissions and doesn't remove content from the search index; SharePoint sites only, not OneDrive. RAC changes who can access.

“Ask site owners to fix overshared sites, but IT can't see item-level details” → Site access review from a DAG report (up to 100 sites in the web view; PowerShell for more). Trap: SharePoint sites only, not OneDrive; 1,000 reviews per month from the site permissions report.

“DAG activity report is empty in a tenant without SharePoint Advanced Management” → Enable data collection first; reports arrive after 24 hours and only hold data from when collection started (28 days kept). Trap: Collection pauses if no report is generated for 3 months; Microsoft 365 E5 alone gives DAG reporting but not snapshot reports or remedial actions.

“Purview: oversharing results for Copilot rollout with no setup” → Default data risk assessment: weekly, top 100 SharePoint sites by usage; first results after a 4-day delay. Trap: Custom assessments need a 48-hour wait, expire after 30 days, and item-level scanning covers SharePoint sites only (max 10 sites).

“Stop Copilot and agents summarizing labeled data (Protect tab)” → Restrict access by label: a DLP policy for the labels you select. Trap: Retention policies delete content not accessed for 3 years; auto-labeling only applies labels to unlabeled files.

“Copilot Studio external threat detection: where and who” → Power Platform admin center > Security > Threat detection > Additional threat detection, as a Power Platform Administrator. Trap: Configured per environment: no tenant-wide setting, so a new environment needs it turned on again. Skipped for classic agents.

“Save fails: no matching federated identity record for the issuer” → Set the app's federated credential issuer to https://login.microsoftonline.com/{tenantId}/v2.0. Trap: The integration is secret-less (FIC), so a client secret doesn't help; the allowlist error is a different, Defender-specific message.

“Defender: block an unsafe agent action, not just log it” → A custom real-time protection rule (the Default rule only audits all agents), scoped to chosen agents. Trap: Copilot Studio and Foundry real-time protection are marked Preview; when a blocking rule covers an agent, near-real-time alerts aren't generated for it.

“Conditional Access for an agent acting on behalf of the signed-in user” → Target the user (users and groups); the user is the token subject. Trap: A policy on the agent identity or blueprint doesn't cover on-behalf-of requests.

“Conditional Access must cover an agent's user account” → Select Agents, then target all agent users or specific agent users. Trap: Neither the Users assignment nor an agent identity or blueprint policy applies to the agent's user account.

“Block every agent except approved ones” → Block policy: include All agent identities, exclude approved agents, blueprints or attribute values, on All resources; start in report-only. Trap: Conditional Access doesn't apply to agents that use API keys, or when security defaults are enabled; licensing needs E7 or Agent 365 plus Entra P1 or E3.

“Analyst can't see blast radius paths that a colleague sees” → Blast radius is scoped to the viewing user's RBAC and scoping settings. Trap: It shows possible paths only, bounded to seven hops; it needs Sentinel data lake onboarding and Exposure management (read).

“Who recovers an agent identity that a sponsor disabled by mistake?” → An owner; sponsors can disable or soft-delete but can't re-enable or restore. Trap: Sponsors are required (at least one), owners are optional, and groups can't be owners.

“Time-bound, approved access for many agents: group, Graph permission or role” → An access package (entitlement management) with a policy for All agents; sponsor is notified before expiry. Trap: Inheritable permissions only pass down delegated scopes (10 resource apps, 40 scopes); Conditional Access sets conditions, not assignments.

“Who can approve agent requests and manage agents in the Microsoft 365 admin center?” → AI Administrator or Global Administrator. Trap: Security Administrator and Global Reader can view the registry only; AI Administrators can't configure Conditional Access or access package policies.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Secure Compute overviewAI Workload Security →