Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Agent Identities and Blueprint Principals should not be assigned privileged Entra directory roles (Preview)

MT.1209HighEntra IDAgent identitiesRuns with -IncludePreview

Part of Maester · Entra ID · Agent identities · All checks

Run this check
Invoke-Maester -TestId MT.1209 -IncludePreview

Agent Identities and Blueprint Principals should not be assigned privileged Entra directory roles.

Assigning Entra ID directory roles (such as Global Administrator, Privileged Role Administrator, Application Administrator, or Agent ID Administrator) directly to Agent Identities or Blueprint Principals allows an AI agent or service principal to modify directory objects, credentials, or tenant configurations.

AI agents should adhere strictly to the principle of least privilege. They should be granted scoped resource permissions or delegated application permissions rather than broad administrative directory roles.

This check queries all active directory role assignments to identify Agent Identities and Blueprint Principals holding directory roles.

  1. Open the Microsoft Entra admin center and navigate to Entra ID > Roles & administrators.
  2. Search for the reported role name (e.g., Global Administrator, Application Administrator).
  3. Under Assignments, locate the reported Agent Identity or Blueprint Principal.
  4. Select the principal and click Remove assignment.
  5. Replace administrative role assignments with specific, least-privileged API permissions or scoped resource permissions where necessary.
Every attribute of this check
FieldValue
Test IDMT.1209
SeverityHigh
SuiteMaester
ProductEntra ID
FeatureAgent identities
AreaPrivileged access
Resource typeAgent
User impactLow
Implementation costMedium
MITRE ATT&CKT1078.004 Cloud Accounts, T1098.003 Additional Cloud Roles
Supports controlsnist-800-53-r5:AC-6(5)
PowerShell testTest-MtEntraAgentDirectoryRoles
ServicesGraph
LifecyclePreview
Long runningYes