azureblog.co.uk
← cd ~/roles
// roles/entra · privileged

Agent ID AdministratorMicrosoft Entra built-in role

Manage all aspects of agents in a tenant including identity lifecycle operations for agent blueprints, agent identity blueprint principals, agent identities, and agentic users.

Role IDdb506228-d27e-4b7d-95e5-295956d6615f
PrivilegedYes. Microsoft marks this role as privileged.
Permissions64

Before you assign it

Microsoft labels this a privileged role, so make it eligible through PIM rather than permanent, require phishing-resistant MFA to activate it, and review who has it regularly.

What it can do

PermissionWhat it allows
microsoft.azure.serviceHealth/allEntities/allTasksRead and configure Azure Service Health
microsoft.azure.supportTickets/allEntities/allTasksCreate and manage Azure support tickets
microsoft.directory/agentIdentities/appRoleAssignedTo/updateUpdate agent identity role assignments
microsoft.directory/agentIdentities/authentication/updateUpdate authentication on agent identities
microsoft.directory/agentIdentities/basic/updateUpdate basic properties on agent identities
microsoft.directory/agentIdentities/createCreate agent identities
microsoft.directory/agentIdentities/deleteDelete agent identities
microsoft.directory/agentIdentities/disableDisable agent identities
microsoft.directory/agentIdentities/enableEnable agent identities
microsoft.directory/agentIdentities/owners/updateUpdate owners on agent identities
microsoft.directory/agentIdentities/tag/updateUpdate tags of agent identities
microsoft.directory/agentIdentityBlueprintPrincipals/appRoleAssignedTo/updateUpdate agent identity blueprint principal role assignments
microsoft.directory/agentIdentityBlueprintPrincipals/authentication/updateUpdate authentication on agent identity blueprint principals
microsoft.directory/agentIdentityBlueprintPrincipals/basic/updateUpdate basic properties on agent identity blueprint principals
microsoft.directory/agentIdentityBlueprintPrincipals/createCreate agent identity blueprint principals
microsoft.directory/agentIdentityBlueprintPrincipals/deleteDelete agent identity blueprint principals
microsoft.directory/agentIdentityBlueprintPrincipals/disableDisable agent identity blueprint principals
microsoft.directory/agentIdentityBlueprintPrincipals/enableEnable agent identity blueprint principals
microsoft.directory/agentIdentityBlueprintPrincipals/owners/updateUpdate owners on agent identity blueprint principals
microsoft.directory/agentIdentityBlueprintPrincipals/tag/updateUpdate tags of agent identity blueprint principals
microsoft.directory/agentIdentityBlueprints/allProperties/readRead all properties of agent identity blueprints
microsoft.directory/agentIdentityBlueprints/allProperties/updateUpdate all properties of agent identity blueprints
microsoft.directory/agentIdentityBlueprints/appRoles/updateUpdate appRoles on agent identity blueprints
microsoft.directory/agentIdentityBlueprints/audience/updateUpdate audience on agent identity blueprints
microsoft.directory/agentIdentityBlueprints/authentication/updateUpdate authentication on agent identity blueprints
microsoft.directory/agentIdentityBlueprints/basic/updateUpdate basic properties on agent identity blueprints
microsoft.directory/agentIdentityBlueprints/createCreate agent identity blueprints
microsoft.directory/agentIdentityBlueprints/credentials/updateUpdate credentials on agent identity blueprints
microsoft.directory/agentIdentityBlueprints/deleteDelete agent identity blueprints
microsoft.directory/agentIdentityBlueprints/owners/updateUpdate owners on agent identity blueprints
microsoft.directory/agentIdentityBlueprints/permissions/updateUpdate exposed permissions and required permissions on agent identity blueprints
microsoft.directory/agentIdentityBlueprints/tag/updateUpdate tags of agent identity blueprints
microsoft.directory/agentUsers/assignLicenseAssign product licenses for agent users
microsoft.directory/agentUsers/basic/updateUpdate basic properties on agent users, such display name, user type, and mail nickname
microsoft.directory/agentUsers/createCreate agent users
microsoft.directory/agentUsers/deleteDelete agent users
microsoft.directory/agentUsers/disableDisable agent users
microsoft.directory/agentUsers/enableEnable agent users
microsoft.directory/agentUsers/invalidateAllRefreshTokensForce sign-out by invalidating agent user refresh tokens
microsoft.directory/agentUsers/lifeCycleInfo/readRead lifecycle information of agent users, such as employeeLeaveDateTime
microsoft.directory/agentUsers/lifeCycleInfo/updateUpdate lifecycle information of agent users, such as employeeLeaveDateTime
microsoft.directory/agentUsers/manager/updateUpdate manager for agent users
microsoft.directory/agentUsers/photo/updateUpdate photo of agent users
microsoft.directory/agentUsers/reprocessLicenseAssignmentReprocess license assignments for agent users
microsoft.directory/agentUsers/restoreRestore deleted agent users
microsoft.directory/agentUsers/revokeSignInSessionsRevoke sign-in sessions for agent users
microsoft.directory/agentUsers/sponsors/updateUpdate sponsors of agent users
microsoft.directory/agentUsers/usageLocation/updateUpdate usage location of agent users
microsoft.directory/agentUsers/userPrincipalName/updateUpdate the user principal name of agent users
microsoft.directory/auditLogs/allProperties/readRead all properties on audit logs, excluding custom security attributes audit logs
microsoft.directory/deletedItems.agentIdentities/deletePermanently delete agent identities, which can no longer be restored
microsoft.directory/deletedItems.agentIdentities/restoreRestore soft-deleted agent identities to original state
microsoft.directory/deletedItems.agentIdentityBlueprintPrincipals/deletePermanently delete agent identity blueprint principals, which can no longer be restored
microsoft.directory/deletedItems.agentIdentityBlueprintPrincipals/restoreRestore soft-deleted agent identity blueprint principals to original state
microsoft.directory/deletedItems.agentIdentityBlueprints/deletePermanently delete agent identity blueprints, which can no longer be restored
microsoft.directory/deletedItems.agentIdentityBlueprints/restoreRestore soft-deleted agent identity blueprints to original state
microsoft.directory/externalUserProfiles/standard/readRead standard properties of external user profiles in the extended directory for Teams
microsoft.directory/groups.unified/createAsOwnerCreate Microsoft 365 groups, excluding role-assignable groups. Creator is added as the first owner.
microsoft.directory/groups/hiddenMembers/readRead hidden members of Security groups and Microsoft 365 groups, including role-assignable groups
microsoft.directory/organization/standard/readRead basic properties on an organization
microsoft.directory/policies/standard/readRead basic properties on policies
microsoft.directory/signInReports/allProperties/readRead all properties on sign-in reports, including privileged properties
microsoft.office365.serviceHealth/allEntities/allTasksRead and configure Service Health in the Microsoft 365 admin center
microsoft.office365.supportTickets/allEntities/allTasksCreate and manage Microsoft 365 service requests

Assign it

The role ID is the same in every tenant, so these work as they are. Make it eligible through PIM:

powershell13 lines
Connect-MgGraph -Scopes "RoleEligibilitySchedule.ReadWrite.Directory"
$user = Get-MgUser -UserId "jane.doe@contoso.com"
New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -BodyParameter @{
    Action           = "AdminAssign"
    Justification    = "Needs Agent ID Administrator for <reason>"
    RoleDefinitionId = "db506228-d27e-4b7d-95e5-295956d6615f"
    DirectoryScopeId = "/"
    PrincipalId      = $user.Id
    ScheduleInfo     = @{
        StartDateTime = (Get-Date).ToUniversalTime().ToString("o")
        Expiration    = @{ Type = "afterDuration"; Duration = "P180D" }
    }
}

Who already has it?

powershell3 lines
Connect-MgGraph -Scopes "RoleManagement.Read.Directory"
Get-MgRoleManagementDirectoryRoleAssignment -Filter "roleDefinitionId eq 'db506228-d27e-4b7d-95e5-295956d6615f'" -ExpandProperty Principal |
    ForEach-Object { $_.Principal.AdditionalProperties.displayName }

Related roles

Find the smallest role for a task →