Skip to main content
Comparison

OpenA2A AIM (Agent Identity Management) and Azure IAM

Azure IAM is the Access control (IAM) page of the Azure portal, where Azure role-based access control (Azure RBAC) role assignments appear. Azure RBAC decides what a user, group, service principal or managed identity may do with Azure resources, and managed identities give workloads on Azure Microsoft Entra tokens without stored credentials. The Azure RBAC documentation does not mention AI agents; Microsoft documents agent identity in Microsoft Entra Agent ID, and Microsoft Foundry assigns Azure roles to the agent identities it provisions. OpenA2A AIM (Agent Identity Management) is an open source platform for AI agent identity. It keeps a registry of agents: each agent has an Ed25519 key, a trust score and a list of capabilities checked through an SDK, and MCP servers are attested by the agents that use them.

The two cover different layers. AIM does not accept Microsoft Entra tokens or managed identity tokens from agents, and it does not replace Azure RBAC for access to Azure. The hosted AIM Cloud adds Google sign-in.

Checked on against Microsoft Learn and AIM at commit 3ab8285e, opens in a new tab. Azure is a cloud service with no version number, so each Microsoft source names, in UTC, the date its page shows as last updated, and the day of the check is a UTC date as well. Learn writes that date in the reader's own time zone, so it can read a day earlier or later. A capability that was looked for and not found was searched for in every page the Azure RBAC, managed identities and Workload ID tables of contents link to, and is stated as of the day of the check. To report a line that is wrong, use the contact page.

Capability by capability

Signing people in

Azure IAM

Not part of Azure RBAC, which decides what a principal that already holds a token may do. "A user (or service principal) acquires a token for Azure Resource Manager", and Azure Resource Manager then checks the role assignments and deny assignments that apply to the resource. A security principal "is an object that represents a user, group, service principal, or managed identity that is requesting access to Azure resources." With a Microsoft Entra ID P2 or Microsoft Entra ID Governance license, Privileged Identity Management makes a person's role assignment eligible or time-bound, so that it must be activated before use. Eligible role assignments can't be created for applications, service principals or managed identities "because they can't perform the activation steps."

Source: What is Azure role-based access control (Azure RBAC)?, updated 2024-03-12, opens in a new tab, Eligible and time-bound role assignments in Azure RBAC, updated 2024-12-12, opens in a new tab

AIM

The dashboard has local email and password sign-in. No single sign-on, OpenID Connect or SAML login is wired in the open source build: the repository contains Google, Microsoft and Okta provider code, but no login route calls it.

Source: cmd/server/main.go, opens in a new tab

Agent identities

Azure IAM

Not found in the Azure RBAC or managed identities documentation as of 2026-10-17: neither mentions AI agents. Nearest documented capability: the security principals a role can be assigned to, which are users, groups, service principals and managed identities. Agent identities appear in the resource provider operations Azure roles can grant, such as "Create or update a managed agent identity blueprint" in Microsoft Foundry. The Workload ID overview sends AI agents to Microsoft Entra Agent ID: "Microsoft Entra Agent ID provides these constructs through agent identities." In Microsoft Foundry, "An agent identity is a specialized identity type in Microsoft Entra ID that's designed specifically for AI agents." Foundry provisions an agent identity blueprint and agent identities, and "Assigns RBAC roles (or other permission models, depending on the target system) to the agent identity". Its guide explains "how to apply least-privilege access with Azure role-based access control (RBAC)".

Source: What is Azure role-based access control (Azure RBAC)?, updated 2024-03-12, opens in a new tab, Azure permissions for AI + machine learning, updated 2026-07-01, opens in a new tab, What are workload identities?, updated 2026-05-08, opens in a new tab, Agent identity concepts in Microsoft Foundry, updated 2026-08-25, opens in a new tab

AIM

Each agent is registered with its own Ed25519 public key. The token endpoint accepts one grant: a JWT-bearer assertion signed with that key, in exchange for a bearer token for AIM's own agent API. AIM does not implement the client credentials grant: the token endpoint refuses it.

Source: agent_service.go, opens in a new tab, oauth_token_handler.go, opens in a new tab

Credentials

Azure IAM

Documented for managed identities: "Applications can use managed identities to obtain Microsoft Entra tokens without having to manage any credentials." When a managed identity is created, "the Managed Identity Resource Provider (MSRP) issues a certificate internally to that identity." A workload that runs outside Azure, or that uses an app registration for its identity, otherwise needs "application credentials (a secret or certificate) to access Microsoft Entra protected resources". Workload identity federation removes that stored credential: a user-assigned managed identity or app registration is configured to "trust tokens from an external identity provider (IdP), such as GitHub or Google."

Source: What is managed identities for Azure resources?, updated 2025-08-19, opens in a new tab, How managed identities for Azure resources work with Azure virtual machines, updated 2025-03-14, opens in a new tab, Workload identity federation concepts, updated 2025-04-09, opens in a new tab

AIM

An agent can sign each request with its Ed25519 key. On routes behind the request-signature check, the server verifies the signature over the method, path, timestamp and body, and rejects a timestamp more than 30 seconds from its own clock. The action-check request is signed over the action's fields (agent, capability, resource, context and timestamp) and verified against the agent's registered key. Agent routes also accept an API key or a bearer token in place of a signature.

Source: pqc_agent_auth.go, opens in a new tab

OAuth flows and delegation

Azure IAM

Delegation in Azure RBAC is delegation of role assignment management: "Delegating role assignment management with conditions is a way to restrict the role assignments a user can create or delete." The conditions can constrain which roles a delegate assigns and which principals the delegate assigns them to. For tokens, workload identity federation lets a workload present its existing SPIFFE identity and exchange it "for a Microsoft Entra token", and in Microsoft Foundry, "When an agent invokes a tool, a multi-step OAuth 2.0 token exchange occurs automatically between Agent Service, Microsoft Entra ID, and the downstream resource." OAuth token exchange as RFC 8693 defines it is not found in the Azure RBAC, managed identities or Workload ID documentation as of 2026-10-17.

Source: Delegate Azure access management to others, updated 2026-03-30, opens in a new tab, Tutorial: Federate a SPIFFE/SPIRE workload identity with Microsoft Entra ID, updated 2026-08-13, opens in a new tab, Agent identity concepts in Microsoft Foundry, updated 2026-08-25, opens in a new tab

AIM

OAuth token exchange (RFC 8693) is not implemented: the agent token endpoint accepts the JWT-bearer grant only. Delegation exists outside OAuth, in the TypeScript SDK, which creates and verifies Ed25519-signed delegation chains between keys. The AIM server does not issue or check them.

Source: oauth_token_handler.go, opens in a new tab, delegation.ts, opens in a new tab

Proof of possession

Azure IAM

Not found in the Azure RBAC, managed identities or Workload ID documentation as of 2026-10-17: DPoP, mutual TLS and proof-of-possession tokens are not mentioned, and the Azure RBAC permission lists name proof of possession once, for an Azure Sphere certificate operation ("Gets the proof of possession nonce"). Nearest documented capability: an application can authenticate to the Microsoft identity platform with "a JSON Web Token (JWT) assertion signed with a certificate that the application owns", in place of a client secret.

Source: Azure permissions for Internet of Things, updated 2026-07-01, opens in a new tab, Microsoft identity platform application authentication certificate credentials, updated 2025-01-04, opens in a new tab

AIM

DPoP is not found in the AIM repository at this commit. Tokens from the token endpoint are plain bearer tokens. Requests authenticated by signature are signed per call, as in the row on client authentication.

Source: oauth_token_handler.go, opens in a new tab

Permissions

Azure IAM

Documented. "A role definition is a collection of permissions." "A role assignment is the process of attaching a role definition to a user, group, service principal, or managed identity at a particular scope for the purpose of granting access." "In Azure, you can specify a scope at four levels: management group, subscription, resource group, or resource." A role assignment condition "filters down permissions granted as a part of the role definition and role assignment", for example to require a tag on an object before it can be read. Deny assignments "block users from performing specific Azure resource actions even if a role assignment grants them access." For generally available scenarios Azure creates and manages deny assignments; customer-managed deny assignments are in private preview.

Source: What is Azure role-based access control (Azure RBAC)?, updated 2024-03-12, opens in a new tab, What is Azure attribute-based access control (Azure ABAC)?, updated 2025-05-19, opens in a new tab, List Azure deny assignments, updated 2026-10-06, opens in a new tab

AIM

Each agent has a list of granted capabilities. The SDK, running inside the agent process, sends each wrapped action to the server, which compares the capability name with that list. In the default mode (monitoring) a capability outside the list is allowed and, under the default policy, raises an alert. The Python SDK's decorator also registers a capability on first use, and in this mode the server grants it automatically. In strict mode a capability outside the list is denied under the default policy, and the SDK blocks the call.

Source: agent_service.go, opens in a new tab, enforcement.py, opens in a new tab

Risk signals and access policy

Azure IAM

Documented for service principals. "Microsoft Entra ID Protection can detect, investigate, and remediate workload identities to protect applications and service principals in addition to user identities." Its detections include leaked credentials, sign-ins with properties unusual for the service principal, and anomalous service principal activity. Conditional Access for workload identities can block a service principal by location or when ID Protection marks it at risk, and "Workload Identities Premium licenses are required to create or modify Conditional Access policies scoped to service principals." Managed identities are outside both: for ID Protection, "Managed Identities aren't currently in scope", and for Conditional Access, "Managed identities aren't covered by policy." A risk or trust score for a principal or an AI agent is not found in the Azure RBAC, managed identities or Workload ID documentation as of 2026-10-17.

Source: Securing workload identities, updated 2025-08-06, opens in a new tab, Conditional Access for workload identities, updated 2026-03-24, opens in a new tab

AIM

Each agent has a trust score calculated from nine weighted factors; a factor with no data is left out of the weighted sum. It is recalculated on events such as registration, verification by an administrator, capability changes and capability reports from the SDK. A capability violation also lowers the stored score directly. Each action check reads the stored score.

Source: trust_calculator.go, opens in a new tab

MCP servers

Azure IAM

The Model Context Protocol by name, an authorization server for MCP clients and dynamic client registration are not found in the Azure RBAC, managed identities or Workload ID documentation as of 2026-10-17. Azure roles can grant MCP operations of other Azure services, such as "Gets the MCP registry configuration for a workspace" in Azure API Center. Microsoft documents MCP authorization in two Azure services. "By using MCP server support in API Management, you can expose and govern access to MCP servers and their tools", and "MCP clients can present OAuth tokens or JWTs issued by Microsoft Entra ID by using an Authorization header and validated by API Management." In App Service, "App Service Authentication allows you to control access to your Model Context Protocol (MCP) server by requiring MCP clients to authenticate with an identity provider." Its protected resource metadata support is in preview, and "MCP server authorization defines access to the server, and it doesn't provide granular control to individual MCP tools or other constructs." On client registration the App Service guide says "Some providers support Dynamic Client Registration (DCR), but many don't, including Microsoft Entra ID."

Source: Azure permissions for Integration, updated 2026-07-01, opens in a new tab, Secure access to MCP servers in API Management, updated 2026-09-11, opens in a new tab, Configure built-in MCP server authorization (Preview), updated 2025-11-05, opens in a new tab

AIM

AIM is not an OAuth authorization server for MCP. Agents submit signed attestations of the MCP servers they connect to, and the server checks each signature against the agent's registered key. A drift alert is raised when a capability detection run finds that a server's manifest has changed since the last run.

Source: mcp_attestation_service.go, opens in a new tab, mcp_manifest_service.go, opens in a new tab

Workload identity

Azure IAM

Documented. "A workload identity is an identity you assign to a software workload (such as an application, service, script, or container) to authenticate and access other services and resources." "In Microsoft Entra, workload identities are applications, service principals, and managed identities." The service principal of a system-assigned managed identity "is tied to the lifecycle of that Azure resource"; a user-assigned managed identity is a standalone Azure resource that can be assigned to one or more resources. Workload identity federation covers "GitHub Actions, workloads running on Kubernetes, or workloads running in compute platforms outside of Azure", and a tutorial federates SPIFFE identities: "the workload presents its existing SPIFFE identity and exchanges it for a Microsoft Entra token."

Source: What are workload identities?, updated 2026-05-08, opens in a new tab, What is managed identities for Azure resources?, updated 2025-08-19, opens in a new tab, Workload identity federation concepts, updated 2025-04-09, opens in a new tab, Tutorial: Federate a SPIFFE/SPIRE workload identity with Microsoft Entra ID, updated 2026-08-13, opens in a new tab

AIM

Not implemented for agents at this commit: AIM accepts no SPIFFE identity, Kubernetes service account token or external OpenID Connect issuer as an agent credential.

Source: oauth_token_handler.go, opens in a new tab, pqc_agent_auth.go, opens in a new tab

Audit

Azure IAM

Documented. "Anytime someone makes changes to role assignments or role definitions within your subscriptions, the changes get logged in Azure Activity Log." "You can view the activity logs to see all the Azure RBAC changes for the past 90 days." The activity log records control plane operations, and "Azure Monitor collects activity log entries by default with no required configuration." Operations within a resource, such as reading a secret from a key vault, go to resource logs, which "aren't collected by default and require configuration with a diagnostic setting."

Source: View activity logs for Azure RBAC changes, updated 2022-08-21, opens in a new tab, Activity log in Azure Monitor, updated 2026-10-15, opens in a new tab

AIM

An action check that passes its signature check is written to the audit log as a row with the agent, the capability, the resource, the stored trust score and whether it was allowed. The write is best effort: if it fails, the check still returns its decision. The log is not append-only at the database layer and is not signed.

Source: verification_handler.go, opens in a new tab, audit_log_repository.go, opens in a new tab, SECURITY.md, opens in a new tab

License and hosting

Azure IAM

A managed Azure service. For Azure RBAC, "Using this feature is free and included in your Azure subscription." "Managed identities can be used at no extra cost." "Microsoft Entra Workload ID is available in two editions: Free and Microsoft Entra Workload ID Premium." Managed identities and workload identity federation are free features; Conditional Access policies scoped to service principals need Workload ID Premium. Eligible and time-bound role assignments need a Microsoft Entra ID P2 or Microsoft Entra ID Governance license.

Source: What is Azure role-based access control (Azure RBAC)?, updated 2024-03-12, opens in a new tab, What is managed identities for Azure resources?, updated 2025-08-19, opens in a new tab, Frequently asked questions about Microsoft Entra Workload ID, updated 2025-03-18, opens in a new tab, Conditional Access for workload identities, updated 2026-03-24, opens in a new tab, Eligible and time-bound role assignments in Azure RBAC, updated 2024-12-12, opens in a new tab

AIM

The repository is Apache-2.0. Self-hosted with Docker Compose. Also offered as a hosted service, AIM Cloud, which is built from a private mirror of the repository with cloud-only additions.

Source: LICENSE, opens in a new tab, docs/DEPLOYMENT.md, opens in a new tab, docker-compose.quickstart.yml, opens in a new tab

Which layer each one covers

Azure IAM

  • Deciding what a user, group, service principal or managed identity may do with Azure resources, at management group, subscription, resource group or resource scope.
  • Giving workloads on Azure managed identities that obtain Microsoft Entra tokens with no stored credential, and federating outside workloads into them.
  • Granting Azure roles to the agent identities Microsoft Foundry provisions.
  • Recording role assignment and role definition changes in the Azure Activity Log.

AIM

  • Keeping a registry of agents, each with its own key.
  • Scoring each agent and recording the action checks it submits.
  • Checking each action an agent submits against its granted capabilities.
  • Recording which MCP servers agents attest to, and alerting when a detection run finds a server's manifest changed.

A team can run both: Azure RBAC for what an agent's managed identity or agent identity may do in Azure, AIM for its registry of agents and their action checks. AIM does not accept Microsoft Entra tokens or managed identity tokens as an agent credential at this commit. Agents authenticate to AIM with their own keys or an AIM API key, and in the open source build people sign in to the AIM dashboard with a local account.

Registering an agent with AIM

In the Python SDK, secure() registers an agent and perform_action wraps the actions to be checked. secure() needs credentials first, from aim-sdk login or an SDK downloaded from the dashboard. For a self-hosted server, AIM's README at this commit says to create the agent in the dashboard first. The capability name on the decorator is what the server compares with the agent's grants. The resource is recorded with the check and is not compared.

from aim_sdk import secure

agent = secure("my-agent")

@agent.perform_action("db:read", resource="users_table")
def get_user_data(user_id):
    ...