In short.
Anthropic’s guide to managing Workload Identity Federation (WIF) through the Claude Admin API teaches organization administrators and platform engineers to keep federation configuration for service accounts, issuers and rules in code; WIF lets automated workloads such as CI jobs exchange their own identity tokens for short-lived Claude access as service accounts. Automation needs a Console-created rule granting organization-wide admin access. It documents service accounts, identity providers and access rules, with HTTP, CLI and SDK examples. Its most consequential details are the rejection of Admin API keys, restrictions on changing privileged rules and service-account roles, and token-reuse pitfalls in repeated CLI commands. It is useful for maintaining federation configuration in code, although complete unattended setup is constrained by mandatory human administration. Pricing, minimum client versions and runtime reliability are not established, and no examples were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the full documentation page at [https://platform.claude.com/docs/en/manage-claude/wif-admin-api.md], including prerequisites, administration bootstrap, authentication, service accounts, issuers, rules, permissions, pagination and archiving. Linked pages, generated schemas and provider-specific walkthroughs are excluded. The page’s credential-precedence cautions, organization-wide scope, wildcard warning and Console-only operations are included. No code, CLI commands, token exchanges or API requests were executed; runtime behavior remains unverified.
The overview
Identity
This is Anthropic’s documentation for managing Workload Identity Federation, or WIF, through Claude’s Admin API. WIF lets a software workload exchange an identity token for short-lived access as a service account, which is an identity for software rather than a person.
The guide covers endpoints under /v1/organizations for service accounts, federation issuers and federation rules. Its original documentation address is [https://platform.claude.com/docs/en/manage-claude/wif-admin-api.md]. It is instructional documentation rather than a standalone tool or infrastructure-as-code provider.
Assessment
The guide is a strong fit for teams that want repeatable federation configuration across organizations or want CI jobs to manage workspace access. It goes beyond request syntax by explaining which permissions automation cannot grant itself, that resources already created with the Connect workload wizard should be listed and imported into infrastructure-as-code state rather than recreated, and why apparently valid CLI authentication can fail.
The principal tradeoff is privilege: org:admin tokens apply to the whole organization, and these endpoints ignore workspace bindings. The documented setup therefore calls for a narrowly matched, trusted administration workload. The examples and operational claims have not been tested.
Users
The intended users are platform engineers, organization administrators and developers responsible for continuous integration and deployment workflows. The clearest use case is keeping Claude federation settings in configuration code instead of repeatedly creating them through the Console.
Beginners can use the page to understand the three resources and their relationships, but implementation assumes familiarity with command-line credentials, organization roles, workspaces and identity tokens. It provides administrative integration guidance rather than an introduction to using Claude for inference.
Capabilities
The documented operations include creating, listing, reading, updating and archiving service accounts, federation issuers and federation rules, subject to permission restrictions. Additional endpoints manage explicit service-account workspace memberships and the workspaces in which a federation rule can mint tokens.
Issuer configuration supports automatic signing-key discovery, an explicit JSON Web Key Set URL, or an inline key set. Rule configuration connects an issuer to a service account and specifies identity-match conditions, OAuth scope, workspace coverage and token lifetime.
Resource lists support page sizes from 1 to 100, defaulting to 20, with cursor pagination. Archived resources are hidden unless include_archived=true is requested. Archiving is an idempotent soft delete; an issuer or service account cannot be archived while a live rule references it.
Using it
Requirements
Every documented endpoint requires an OAuth bearer token carrying org:admin, including read requests. Admin API keys are rejected. Interactive access to this scope is limited to organization members with the admin, owner or primary owner role. Requests also require an API version header; the examples use anthropic-version: 2026-10-21.
Federated administration requires an org:admin rule targeting a service account whose organization_role is admin. That rule must be created in the Console. The workload must supply an identity token and the federation-rule, organization and service-account identifiers.
Workspace access also depends on service-account membership. Every service account implicitly belongs to the default workspace; explicit memberships are managed for other workspaces. Minimum SDK and ant CLI versions are not stated.
Mechanism
A federation issuer registers an OpenID Connect identity provider and tells Anthropic how to obtain its signing keys. A federation rule then connects that issuer to a target service account. Identity tokens satisfying the rule’s subject and claim conditions can be exchanged for access tokens acting as that account.
The SDK and ant CLI perform the exchange automatically and repeat it before the access token expires, reading the workload identity token again. Direct HTTP clients must perform the exchange themselves. The resulting org:admin bearer token authorizes organization-level administration even when the federation configuration includes a workspace binding.
Setup
For interactive administration, the guide uses ant auth login with a dedicated admin profile and the org:admin scope, then exports the profile’s access token as ANTHROPIC_AUTH_TOKEN. This login also makes the admin profile active. ANTHROPIC_API_KEY must be unset because it takes precedence and these endpoints reject keys. If the short-lived token produces a 401 response, the documented remedy is to export the access token again. Afterwards, unset the token variable and reactivate the default profile.
For automation, first create an org:admin federation rule through the Console’s Connect workload flow. Match one exact trusted workload identity, such as a protected GitHub branch. Configure ANTHROPIC_FEDERATION_RULE_ID, ANTHROPIC_ORGANIZATION_ID, ANTHROPIC_SERVICE_ACCOUNT_ID and either ANTHROPIC_IDENTITY_TOKEN_FILE or ANTHROPIC_IDENTITY_TOKEN. Unset both ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN so federation is used.
For multiple ant commands, use a federation profile so commands can reuse the cached access token. With flags or environment variables alone, each command exchanges the identity token again; Anthropic accepts identity tokens carrying a jti claim only once by default, and GitHub Actions tokens carry that claim. For rules covering multiple or all workspaces, the CLI needs workspace_id in the federation profile and ANTHROPIC_PROFILE selecting it. ANTHROPIC_WORKSPACE_ID alone and --workspace-id do not supply the exchange binding in the documented CLI behavior.
Example
The page provides separate endpoint examples. Its GitHub Actions issuer example registers an issuer named github-actions at [https://token.actions.githubusercontent.com] using signing-key discovery. Its service-account example creates inference-worker with the developer role. Its GitHub Actions rule example creates gha-deploy using placeholder issuer and service-account IDs. The rule matches repo:my-org/my-repo:ref:refs/heads/main plus a repository_owner claim of my-org, targets the service account identified by the placeholder and enables workspace:developer access in one workspace.
The example sets token_lifetime_seconds to 600, or ten minutes; this is an example value rather than an established default. When these requests run from automation, the workload is authorized by a separate Console-created org:admin rule; an administrator’s interactive org:admin token can run the same requests. The page illustrates the requests in HTTP, ant CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby. None of these examples was executed.
Assessment & evidence
Limitations
OAuth callers may create or modify rules only with workspace:developer or workspace:inference scopes. Other scopes, including org:admin and workspace:manage_tunnels, require the Console. An issuer cannot be updated through OAuth if it backs a rule outside those two permitted scopes. The guide suggests a dedicated issuer for the administration bootstrap rule to keep other issuers updatable.
Federated tokens cannot set a service account’s organization_role to admin, including when the account already has that role. An interactive token or the Console is required for that assignment. These restrictions prevent complete unattended provisioning of privileged federation access.
Identity matching is consequential: subject_prefix is an exact match unless it ends in an asterisk. The page warns that repo:my-org/my-repo:* also matches pull-request runs, including runs triggered from forks, potentially allowing pull-request authors to mint org:admin tokens.
Resource names must contain only lowercase letters, digits and hyphens, be 1 to 255 characters long, and be unique within each resource type in an organization. Complete field schemas, rate limits, availability guarantees and observed error behavior are not established here.
Reasoning
The practical value is repeatability: after a human establishes the privileged administration rule, a trusted workload can maintain issuers and permitted workspace-scoped rules in code. That suits teams managing recurring changes or multiple organizations.
The permission boundaries make this a controlled automation approach rather than complete automated provisioning. A reasonable implementation choice is to separate the bootstrap issuer from routinely managed issuers and keep the administration rule tied to one protected workload identity. This recommendation follows the documented update restrictions and wildcard warning; no operational improvement has been measured.
Alternatives
The Claude Console’s Connect workload wizard is the documented alternative for interactive setup and remains required for creating or modifying rules with privileged scopes. An interactive OAuth token can perform administration without first granting a workload administrative access.
For API integration, the page offers direct HTTP requests, SDKs and the ant CLI. SDKs and the CLI handle federation exchanges automatically; direct HTTP clients handle them explicitly. The page names no competing identity service or third-party infrastructure provider and gives no comparative performance evidence.
Evidence
The supporting source is the complete Anthropic documentation page at [https://platform.claude.com/docs/en/manage-claude/wif-admin-api.md]. It supplies authentication instructions, endpoint examples, permission restrictions, pagination behavior and archiving rules.
Linked conceptual guides, provider-specific instructions and generated API references are not covered here. No commands or API requests were executed. Functional behavior, SDK compatibility, reliability and performance have not been independently verified.
Access & freshness
Costs
The page does not establish prices, plan eligibility, billing treatment or charges for WIF administration. These costs remain unknown; the presence of documentation and examples does not establish free access.
It also provides no measured setup time, maintenance effort or CI-provider costs.
Rights
This page contains no explicit license or redistribution grant for its documentation or code examples. Permission to redistribute those materials is therefore unknown. Service terms and data-handling terms are not established by this page.
Freshness
This page was captured on 15 November 2026 at 06:08:17.231 UTC. Its HTTP examples specify the API request version 2026-10-21; that header does not establish the guide’s publication date.
The page’s last revision date, minimum compatible client versions and behavior after the capture are unknown.
Actions
Before implementation, confirm who can authorize organization-wide administration and identify the exact protected workload allowed to obtain it. Plan separate treatment for Console-only privileged rules and API-managed workspace rules, including the issuer-update restriction.
List existing service accounts, issuers and rules before creating replacements, and import existing resources into infrastructure-as-code state where appropriate. Check credential precedence, workspace memberships and CLI federation-profile settings. Consult the linked API references for complete schemas and confirm compatible client versions, pricing and applicable terms before relying on the integration.
