- Immediate Exposure (
MC1506733): By default, non-admin users in Microsoft Entra ID can register Agent Identity Blueprints—just like legacy app registrations—unless administrators explicitly toggle "Users can register agent identity blueprints" to No. - API Convergence: Legacy Entra Agent Registry Graph APIs are converging into Microsoft Agent 365; agents registered solely against legacy preview endpoints will require re-registration under the Agent 365 control plane.
- What Else Is Landing: Pair this lockdown with Agent Lifecycle Policies (automated expiration and periodic access reviews), Local Agent Authentication (PKCE Public Preview) to eliminate static client secrets, and Dynamic Agent Risk in Conditional Access.
Enterprise identity teams spent years tightening Users can register applications = No in Microsoft Entra ID to stop shadow OAuth apps. Now, the exact same governance gap has reopened for autonomous AI workloads.
Under Message Center advisory MC1506733, Microsoft Entra ID permits non-admin users to create Agent Identity Blueprints by default unless explicitly restricted. Because a multi-instance blueprint acts as a parent template capable of minting credentials and spawning multiple child Entra Agent IDs, leaving blueprint registration open to all users creates an instant shadow-agent blind spot.
At the same time, Microsoft is converging the legacy Agent Registry Graph APIs into Microsoft Agent 365, introducing formal Agent Lifecycle Policies, and previewing Local Agent Authentication (OAuth Authorization Code Flow with PKCE) so endpoint-hosted agents no longer rely on static client secrets.
Architecture: How Blueprint Lockdown Connects to Agent 365 Governance
Step 1: Disable Default Non-Admin Agent Blueprint Registration (Entra Admin Center & Graph)
Option A — Microsoft Entra Admin Center (Fastest for Change Control)
- Sign in to the Microsoft Entra admin center as Global Administrator or Agent ID Administrator.
- Navigate to Entra ID > Users > User settings (or Entra ID > Agents > Settings as the consolidated blade rolls out).
- Locate Users can register agent identity blueprints and set it to No.
- Confirm Users can register applications is also set to No so makers cannot sidestep blueprint governance by creating standard OAuth apps.
Option B — Audit & Enforce via Microsoft Graph PowerShell
Required Permissions: Reading and updating tenant authorization policy requiresPolicy.Read.All(for audit) andPolicy.ReadWrite.Authorization(for remediation). Standard read-only automation apps withoutPolicy.Read.Allwill receive403 Forbiddenon/policies/authorizationPolicy—which we verified on our LAB 365 dev tenant (LAB365-Dev-Automation) before elevating via interactive admin session.
# Interactive privileged session (requires Policy.ReadWrite.Authorization + AgentIdentityBlueprint.Read.All)
Connect-MgGraph -Scopes @(
"Policy.ReadWrite.Authorization",
"AgentIdentityBlueprint.Read.All",
"Application.Read.All"
) -NoWelcome
# 1. Inspect current defaultUserRolePermissions on the beta authorizationPolicy endpoint
$AuthPolicy = Invoke-MgGraphRequest `
-Method GET `
-Uri "https://graph.microsoft.com/beta/policies/authorizationPolicy"
$AuthPolicy.defaultUserRolePermissions | Format-List
# 2. Check specifically for app & agent blueprint creation flags
$Flags = $AuthPolicy.defaultUserRolePermissions
[PSCustomObject]@{
AllowedToCreateApps = $Flags.allowedToCreateApps
AllowedToCreateTenants = $Flags.allowedToCreateTenants
AllowedToCreateSecGroups = $Flags.allowedToCreateSecurityGroups
PermissionGrantPolicies = ($Flags.permissionGrantPoliciesAssigned -join ", ")
} | Format-List
If your tenant's authorizationPolicy exposes the agent blueprint toggle or still allows allowedToCreateApps = $true, lock down default user permissions and route all new blueprint requests through your Agent ID Administrator or Application Administrator workflow:
# Restrict standard users from creating apps (and apply blueprint restriction in Entra User Settings)
$Body = @{
defaultUserRolePermissions = @{
allowedToCreateApps = $false
}
} | ConvertTo-Json -Depth 5
Invoke-MgGraphRequest `
-Method PATCH `
-Uri "https://graph.microsoft.com/beta/policies/authorizationPolicy" `
-Body $Body `
-ContentType "application/json"
Step 2: Inventory Existing Agent Identity Blueprints & Child Agent IDs
Before migrating legacy Agent Registry entries into Agent 365, generate a complete inventory of every agentIdentityBlueprint and agentIdentity object currently in your directory. Any blueprint missing an explicit human sponsor/owner should be flagged for immediate review.
# 1. Enumerate all Agent Identity Blueprints (beta)
$Blueprints = (Invoke-MgGraphRequest `
-Method GET `
-Uri "https://graph.microsoft.com/beta/applications/microsoft.graph.agentIdentityBlueprint").value
# 2. Enumerate all Agent Identities (child instances)
$AgentIdentities = (Invoke-MgGraphRequest `
-Method GET `
-Uri "https://graph.microsoft.com/beta/servicePrincipals/microsoft.graph.agentIdentity").value
Write-Host "Found $($Blueprints.Count) Agent Identity Blueprints and $($AgentIdentities.Count) Agent Identities." -ForegroundColor Cyan
$Report = foreach ($bp in $Blueprints) {
$Owners = (Invoke-MgGraphRequest `
-Method GET `
-Uri "https://graph.microsoft.com/beta/applications/$($bp.id)/owners?`$select=displayName,userPrincipalName").value
[PSCustomObject]@{
DisplayName = $bp.displayName
AppId = $bp.appId
ObjectId = $bp.id
CreatedDateTime = $bp.createdDateTime
OwnerCount = $Owners.Count
Owners = ($Owners.userPrincipalName -join "; ")
HasPasswordCreds = ($bp.passwordCredentials.Count -gt 0)
HasFederatedCreds = ($bp.federatedIdentityCredentials.Count -gt 0)
}
}
$Report | Format-Table DisplayName, AppId, OwnerCount, HasPasswordCreds, HasFederatedCreds -AutoSize
$Report | Export-Csv -Path ".\Entra_AgentIdentityBlueprints_Audit.csv" -NoTypeInformation
Step 3: Legacy Agent Registry Graph API → Agent 365 Migration Checklist
Microsoft is consolidating standalone preview Agent Registry endpoints into Microsoft Agent 365. Use this four-point migration checklist so autonomous workflows do not break during the cutover:
| Migration Phase | What to Audit | Action Required |
|---|---|---|
| 1. Discovery | Agents registered via legacy preview Agent Registry Graph calls | Export blueprint IDs, manifest metadata, and owning business unit. |
| 2. Re-Registration | Legacy registry entries not visible in the Agent 365 blade | Re-register agents under the Agent 365 control plane and validate Entra Agent ID linkage. |
| 3. Credential Hygiene | Local endpoint agents using static client secrets (HasPasswordCreds = True) | Migrate local agents to Local Agent Authentication (OAuth Auth Code + PKCE) and cloud agents to Federated Identity Credentials (FIC). |
| 4. Lifecycle & Risk | Orphaned agents (OwnerCount = 0) or permanent elevated roles | Attach Agent Lifecycle Policies (auto-expiration + sponsor review), convert standing roles to PIM for AI Agents, and enforce Dynamic Agent Risk Conditional Access. |
Related LAB 365 Guides
- Enhanced Entra PIM for Application Roles & AI Agent Identities: Auditing App Permissions via Graph PowerShell
- Governing Microsoft 365 Copilot Autopilot & Agent Mailboxes with Entra Agent ID
- Sandboxing AI Agents with Microsoft Execution Containers & Entra Agent Identity Blueprints
đź’¬ Reader Comments & Feedback
Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.
Leave a Comment or Report an Update