Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Client ID Metadata Documents (CIMD) let an OAuth client identify itself by using an HTTPS URL instead of a preassigned client ID. The document at that URL contains the client's OAuth metadata. Microsoft Entra ID retrieves and validates the document, represents the client as an agent identity in the tenant, and issues tokens under the tenant's existing consent and security policies.
Important
Client ID Metadata Document support in Microsoft Entra ID is in public preview. This preview is provided without a service-level agreement and isn't recommended for production workloads. Some features might be unsupported or have constrained capabilities. For more information, see Universal License Terms for Online Services.
CIMD is useful when a client must connect to many authorization servers with which it has no prior relationship. For example, an MCP client can discover remote Model Context Protocol (MCP) servers at runtime, and each server might use a different authorization server. Requiring every client to be registered with every authorization server doesn't scale.
CIMD is defined by the OAuth Client ID Metadata Document specification. The MCP authorization specification recommends CIMD for clients that don't have another supported registration mechanism.
How CIMD works with Microsoft Entra ID
A typical CIMD authorization flow has the following steps:
- An MCP client discovers that an MCP server uses Microsoft Entra ID as its authorization server.
- The client reads the authorization server metadata and determines that CIMD is supported.
- The client sends an authorization request. Its
client_idis the HTTPS URL of its metadata document. - Microsoft Entra ID retrieves the document and validates its contents, including an exact match between the requested
client_idand the document'sclient_id. - Microsoft Entra ID derives a stable app ID from the canonical document URL and looks for a matching agent identity in the tenant.
- If the identity doesn't exist, tenant policy determines whether it can be created through consent. An administrator can instead add the CIMD client in advance.
- Microsoft Entra ID validates the requested redirect URI and permissions, obtains any required consent, and issues an audience-restricted access token.
- The client presents the token to the MCP server.
The CIMD URL is the durable identity of the client. Moving the document to another URL creates a different identity and doesn't preserve permissions granted to the old identity.
How Microsoft Entra represents a CIMD client
Microsoft Entra ID represents a CIMD client as an agent identity in each tenant where the client is approved.
A CIMD-backed agent identity:
- Has an app ID derived from the canonical CIMD URL.
- Stores the CIMD URL as an immutable identifier.
- Has a read-only agent identity blueprint in each tenant, and no blueprint service principal.
- Uses the external metadata document as the source of truth for its OAuth configuration.
- Appears in agent identity inventory, audit logs, and sign-in logs.
Because the metadata remains in the external document, features that inspect OAuth configuration stored on an Entra application object might not evaluate a CIMD client. Review the governance considerations before adopting CIMD.
When to use CIMD
Implementers should always prefer pre-registration of a client with Entra when possible. For high-volume or strategic integrations, a conventional registered client ID provides the most stable identity and the broadest Entra capabilities. CIMD should only be used when all of the following conditions apply:
- The client must connect to many independently operated authorization servers.
- The authorization servers can't reasonably preregister the client.
- The client uses a user-present, delegated OAuth flow.
- The client can publish stable metadata on a public HTTPS URL.
- The client accepts the limitations described in this article.
An MCP client that discovers many remote servers at runtime is the primary scenario.
Supported capabilities and limitations
The following table summarizes the capabilities and limitations of CIMD-backed agent identities.
| Capability | CIMD support |
|---|---|
| OAuth authorization code flow with a signed-in user | Supported |
| Refresh tokens | Supported |
| Proof Key for Code Exchange (PKCE) | Supported |
| Client credentials flow | Not supported |
| Device code flow | Supported |
| Acting as an OAuth resource or token audience | Not supported |
| ID tokens or SAML tokens for user sign-in | Not supported |
| Shared client secrets | Not supported |
| Publisher verification or Microsoft 365 certification | Not supported |
| Multiple agent identities sharing one blueprint | Not supported |
| Agent user accounts | Not supported |
| Windows Web Account Manager (WAM) | Not supported |
| In-place conversion to or from a conventional client ID | Not supported |
Security model
CIMD proves that a client controls a URL. It doesn't prove that the client is trustworthy or should receive access to organizational data.
Microsoft Entra ID applies the following protections:
- HTTPS-only identifiers: A CIMD client ID must be an HTTPS URL with a path. User information and fragments aren't allowed in the URL.
- Exact identity match: The
client_idin the document must exactly match the URL used as the client ID. - Exact redirect matching: The redirect URI in an authorization request must exactly match a URI in the document.
- Consent policy enforcement: Existing tenant consent policy determines whether users can add the client and which delegated permissions they can grant.
- No app-only tokens: CIMD clients can't use the client credentials grant.
- Audience restriction: Microsoft Entra ID doesn't issue tokens whose audience is the CIMD client.
Under the default recommended consent policy, users can consent only to low-risk OAuth permissions for CIMD clients. Sensitive permissions require administrator consent. For administrator guidance, see Manage CIMD clients in Microsoft Entra ID.
Governance considerations
Before using CIMD, account for the following considerations:
- The client owner controls the metadata document and can change its contents.
- The document URL is immutable in Microsoft Entra ID. A URL change requires a new identity and new consent grants.
- App management policy and other controls that inspect configuration stored on an application object don't cover metadata that remains only in the CIMD document.
- CIMD clients don't support publisher verification or Microsoft 365 certification.
- Entra doesn't provide a tenant-managed domain allowlist or blocklist for CIMD URLs.
- Losing control of the document URL or its domain can affect every tenant that trusts that client identity.
Use least-privilege delegated permissions, preapprove clients that need sensitive access, monitor their sign-ins, and remove identities that are no longer required.