Does Claude Code support SSO and restricted logins for enterprises?
Yes, with conditions that a platform or security lead must confirm before rollout. SSO is listed on Team and Enterprise plans, and SCIM is listed on Enterprise only, according to Anthropic's pricing page as of November 2026. Login restriction is not a plan feature alone: admins enforce it through managed settings on managed machines, using forceLoginMethod and forceLoginOrgUUID, so that Claude Code exits at startup when a developer signs in to an organization that is not on the approved list. Confirm with Anthropic which plan your organization would buy and whether SCIM provisioning is required for your joiner, mover and leaver process, because that decides whether the Enterprise plan is necessary.
The restriction that matters most for stray credentials is separate from SSO itself. With forceLoginMethod or forceLoginOrgUUID set, Claude Code also blocks sessions that authenticate with ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper at startup. Ask your platform team to confirm that these settings reach every managed machine, including machines where developers have shell profiles that export API keys, since the managed settings file is what the policy depends on. Also decide how the allowedProviders setting will limit which services a managed machine may reach, and confirm that your fleet runs Claude Code v2.1.285 or later, the version that setting requires. Claude Code authentication documentation lists these keys and their exact behavior.
If you need inference to stay in your own infrastructure, identity works differently. The self-hosted Claude apps gateway signs developers in through an OpenID Connect identity provider such as Okta, Microsoft Entra ID, Google Workspace, Keycloak or Dex, and it does not support SAML or LDAP. Your identity team must therefore plan an OIDC integration and confirm it meets your sign-in requirements, and the gateway itself is a component you operate. On the Claude Console, SSO can be set up with either a Claude Code role, which can only create Claude Code API keys, or a Developer role, which can create any API key. Choose the role deliberately, because the broader role lets a developer create keys outside the Claude Code scope.
Claude Code identity capabilities by plan and route
This table compares identity controls across Claude for Team, Claude for Enterprise and the self-hosted Claude apps gateway, labeling each as built in, paid plan only, outside component or not available. Read it as a plan decision and a route decision: SSO and SCIM depend on the plan, while the managed settings apply wherever developers sign in with claude.ai. The pricing page is dated November 2026, so confirm current plan inclusions before approval.
| Control | Claude for Team | Claude for Enterprise | Self-hosted gateway |
|---|---|---|---|
| Single sign-on | Paid plan only: SSO is listed on Team (pricing page, November 2026) | Paid plan only: SSO is listed on Enterprise (pricing page, November 2026) | Outside component: developers sign in through your OpenID Connect identity provider |
| SCIM provisioning | Not available: listed for Enterprise only (pricing page, November 2026) | Paid plan only: SCIM is listed for Enterprise only | Not stated in the gateway docs; confirm with Anthropic before relying on it |
| forceLoginMethod and forceLoginOrgUUID | Built in as managed settings; Claude Code exits at startup for unlisted organizations | Built in as managed settings; Claude Code exits at startup for unlisted organizations | Not applicable to gateway sign-in; enforce org membership at the identity provider |
| Blocking ANTHROPIC_API_KEY and apiKeyHelper | Built in once forceLoginMethod or forceLoginOrgUUID is set; blocks at startup | Built in once forceLoginMethod or forceLoginOrgUUID is set; blocks at startup | Confirm whether the gateway path is covered by this check in your version |
| allowedProviders | Built in; requires Claude Code v2.1.285 or later | Built in; requires Claude Code v2.1.285 or later | Built in; lists the gateway as an allowed route, requires v2.1.285 or later |
| Claude Console SSO roles | Not applicable: the Console is a separate API billing route | Not applicable: the Console is a separate API billing route | Outside component: Console roles govern API key creation, not gateway sign-in |
| Supported identity providers | Confirm supported providers with Anthropic for your plan | Confirm supported providers with Anthropic for your plan | OpenID Connect only, such as Okta, Entra ID, Google Workspace, Keycloak or Dex; SAML and LDAP not supported |
How managed settings block personal logins and stray API keys
The enforcement path for this control sits in managed settings. Setting forceLoginMethod and forceLoginOrgUUID tells Claude Code to exit at startup when a developer signs in to a claude.ai organization that is not on your list, so a personal account cannot quietly become the working identity on a company machine. The same setting group also blocks sessions that authenticate with ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper. That matters because a developer who has a personal key in a shell profile or a .env file could otherwise bypass the SSO-backed login entirely. Before you rely on this, confirm with the current Claude Code authentication documentation which managed settings sources your version reads and how they are delivered to each device.
The check runs once at startup on the machine, which has two consequences. First, it protects only the machines that actually receive the managed settings, so you need endpoint management in place, such as an MDM profile or a managed settings file distributed by your device tooling, and a way to confirm that every developer laptop and build host carries it. A developer on an unmanaged laptop, or on a host where the file was removed, is outside the control. Second, the check is a gate on starting a session, not a continuous audit, so you should not treat it as a log of who used which account during a session. Ask your vendor or partner to show how a blocked startup appears to the user and what your managed rollout reports back.
Managed settings also include allowedProviders, which lists the services a managed machine may reach Claude through, such as the Anthropic API, Amazon Bedrock or an LLM gateway. It requires Claude Code v2.1.285 or later, so older clients on your fleet will not honor it and should be upgraded or excluded before you depend on it. Decide in advance which providers are approved for your organization, because a provider missing from the list is the path a developer with a valid key would otherwise use. Pair this decision with a fleet inventory that records the Claude Code version on each managed machine.
How a developer login is accepted or refused
The check starts when a developer runs Claude Code on a managed machine. Claude Code reads managed settings first, then compares the claude.ai organization against forceLoginOrgUUID and the sign-in method against forceLoginMethod. If either fails, it exits at startup. With either setting in place, it also refuses sessions that use ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper. Confirm each branch on a test machine before rollout, because allowedProviders is a separate check that needs a current Claude Code version.
Startup checks that accept or refuse a Claude Code login on a managed machine.
How the sign-in design changes by identity provider and edition
For most teams, the Claude Code authentication docs recommend Claude for Teams or Enterprise. Members sign in with their claude.ai identity, which gives them both Claude Code and Claude on the web under one centrally managed billing and team structure. This is the route where the organization-level login restriction applies most directly, because the managed settings can check which organization a developer signs into at startup.
- Login method check:
forceLoginMethodandforceLoginOrgUUIDin managed settings make Claude Code exit at startup when a developer logs in to an organization not on the list. - Personal accounts: a developer who signs in with a personal claude.ai account on the same machine is blocked by the same check.
- SSO availability: the Claude pricing page lists SSO on Team and Enterprise plans, as of November 2026.
- Provisioning: on Team, confirm how member accounts are added and removed, since SCIM is listed only for Enterprise.
- Offboarding: confirm how a removed employee's sessions and local credentials are cleared on managed laptops.
Before approving this route, confirm with Anthropic which plan your organization is on and whether SSO is enabled for your tenant.
SCIM is the route where your identity provider creates, updates and removes developer accounts automatically. The Claude pricing page lists SCIM on Enterprise only, as of November 2026, so a Team organization that needs automated deprovisioning has to change plans or accept manual account removal. Sign-in still runs through SSO, and SCIM keeps the account list aligned with your directory so that a departing developer loses access without a manual step.
- Plan requirement: SCIM is available on Enterprise, not on Team.
- Directory linkage: provisioning follows group and user changes in your identity provider, so group membership should be reviewed as part of access control.
- Deprovisioning: confirm how quickly a suspended account loses access to existing Claude Code sessions on developer machines.
- Login restriction: keep
forceLoginOrgUUIDin managed settings so a developer cannot sign into a second organization on a managed device. - Verification: ask for a test in which a removed user is tested against both the web app and the terminal.
Request written confirmation of the SCIM scope and the deprovisioning behavior before you rely on it for regulated access reviews.
Teams that bill through the Claude Console with API usage sign in through the Console, not through a Team or Enterprise seat. Admins can set up SSO there and assign one of two roles. The Claude Code role can only create Claude Code API keys. The Developer role can create any API key, which gives a wider capability to anyone holding it. Because this route issues keys, the managed settings that block stray credentials matter more here.
- Claude Code role: limits a user to creating Claude Code API keys, which suits most engineers.
- Developer role: can create any API key, so assign it only to people who need that scope.
- Stray keys: with
forceLoginMethodorforceLoginOrgUUIDset, Claude Code blocks sessions that authenticate withANTHROPIC_API_KEY,ANTHROPIC_AUTH_TOKENorapiKeyHelperat startup. - Credential storage: on macOS credentials sit in the encrypted macOS Keychain, and on Linux in
~/.claude/.credentials.jsonwith file mode 0600, so check how your endpoint management handles those files. - Billing: API billing is separate from seat billing, so confirm who approves spend.
Confirm with your Anthropic account team which role each group receives and whether the SSO setup covers every Console user.
Organizations that run the self-hosted Claude apps gateway sign developers in through an OpenID Connect identity provider. The gateway documentation lists Okta, Microsoft Entra ID, Google Workspace, Keycloak and Dex as examples of supported OIDC providers. SAML and LDAP are not supported by the gateway, so a directory that exposes only SAML or LDAP needs an OIDC bridge or a different route. In this model your identity provider authenticates the user, and the gateway routes inference to your cloud provider.
- Supported protocol: OpenID Connect only, with the providers named above as examples.
- Unsupported protocols: SAML and LDAP are not supported by the gateway.
- Routing control: pair the gateway with
allowedProvidersin managed settings, which requires Claude Code v2.1.285 or later, to limit which services a managed machine can reach. - Login restriction:
forceLoginMethodandforceLoginOrgUUIDapply to claude.ai logins, so confirm how they interact with gateway sign-in on your fleet. - Cloud routing: list the cloud provider in your scope, such as Amazon Bedrock, Google Cloud or Microsoft Foundry, if inference stays in your account.
Regulated and air-gapped teams should confirm in writing which sign-in route applies to each user group and which traffic still reaches Anthropic.
Identity decisions to settle before rollout
Before developers sign in to Claude Code, the organization has to pick a sign-in route, decide whether provisioning automation justifies Enterprise, and set the organization and role boundaries that managed settings and the Claude Console will enforce. Each choice below changes who can log in, which billing path they use, and where credentials sit on the machine.
Choose the sign-in route
Team or Enterprise login, Console SSO with API billing, and OIDC sign-in through the self-hosted Claude apps gateway are different identity paths with different controls. The Claude Code authentication docs call Claude for Teams or Enterprise the recommended route for most teams. Confirm which route covers your developers, and whether any group will sign in another way, before you write managed settings.
Authentication docsIs SCIM worth Enterprise
SSO is on Team and Enterprise, but SCIM is listed on Enterprise only according to the Claude pricing page as of November 2026. If you need automated user provisioning and deprovisioning from your identity provider, that requirement alone may decide the plan. If you only need developers to sign in through your identity provider, confirm whether Team meets your audit and offboarding requirements.
Claude pricingSet the organization UUID to enforce
Setting forceLoginMethod and forceLoginOrgUUID in managed settings makes Claude Code exit at startup when a developer signs in to an organization that is not on your list. Get the UUID from your Claude administrator and test it on a pilot machine. Also confirm that developers cannot switch to a personal or contractor organization on the same laptop.
Block stray API keys
With forceLoginMethod or forceLoginOrgUUID set, Claude Code blocks sessions that authenticate with ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper at startup. Decide whether any team needs API-key billing at all. If it does, document the exception, because enforcing the organization login will stop those sessions.
Pick the Console role model
On the Claude Console, a Claude Code role can only create Claude Code API keys, while a Developer role can create any API key. Assign the narrower role unless a person needs to manage broader keys. Review who holds the Developer role, since it grants more reach than developers normally need.
Plan credential storage per OS
On macOS, Claude Code stores credentials in the encrypted macOS Keychain. On Linux, it uses ~/.claude/.credentials.json with file mode 0600. Confirm that Linux workstations and shared build hosts restrict home directory access, because file permissions are the only protection for that file. Ask your device team how these credentials are handled when a laptop is wiped or reassigned.
Rollout order for identity controls in production
This sequence moves Claude Code sign-in from open personal accounts to one organization's identity provider, with managed settings enforced on every endpoint before any developer depends on it. Each step ends with a check you can record as evidence for your security review.
Confirm plan and SSO enablement
Before any design work, confirm with your Anthropic account team which plan your organization holds and whether SSO is switched on for it. The Claude pricing page lists SSO on Team and Enterprise plans and SCIM on Enterprise only, so a Team plan can give you SSO but not automated provisioning and deprovisioning through SCIM. Ask the vendor to confirm the current entitlements in writing, because plan contents change. The step is done when the account owner and your procurement contact have a written list of what the plan includes for identity.
Decide the sign-in route for each developer group
Choose which login path each group uses: Claude for Teams or Enterprise with SSO, the Claude Console with SSO and a Claude Code or Developer role, or the self-hosted Claude apps gateway, which signs developers in through an OpenID Connect identity provider such as Okta, Microsoft Entra ID, Google Workspace, Keycloak or Dex. The gateway does not support SAML or LDAP, so confirm your identity provider is on that list before you commit. The step is done when a written decision record names one route per group and the identity provider that backs it.
Deploy managed settings through device management
Push the managed settings that set forceLoginMethod and forceLoginOrgUUID to managed endpoints using your device management tool, rather than relying on developers to configure their own machines. Limit the rollout to a pilot group first. Confirm on a sample of pilot machines that the managed file is present, that it is not editable by standard users, and that it applies after a fresh launch. The step is done when your device inventory shows the setting on every pilot machine with no exceptions outstanding.
Test blocked personal logins on the pilot
With the settings in place, a pilot developer should try to sign in with a personal claude.ai account that belongs to a different organization. Claude Code is documented to exit at startup when a login belongs to an unlisted organization, so the expected result is a startup block, not a warning. Record the test, the account type used, the time, and the observed output. Repeat the test with a second personal account if your pilot includes contractors. The step is done when every attempt is blocked and the results are filed with the rollout record.
Test blocked API keys on the pilot
Next, confirm that a stray credential cannot bypass the login rule. With forceLoginMethod or forceLoginOrgUUID set, Claude Code blocks sessions that authenticate with ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper at startup. Test each credential path that your developers might use, including a key left in a shell profile or project environment file. Confirm the block occurs before any prompt is sent. The step is done when each tested path is refused at startup and the findings list any path that needed a separate fix.
Enforce allowedProviders on managed machines
Add the allowedProviders managed setting so managed machines can reach Claude only through the services you approve, such as the Anthropic API, Amazon Bedrock or an LLM gateway. This setting requires Claude Code v2.1.285 or later, so first confirm the version on every managed endpoint and use your device management tool to report any older installs. Then test that an unapproved provider is refused. The step is done when the version inventory is clean and the test shows an unapproved provider is refused on a managed machine.
Verify deprovisioning against the identity provider
Test the offboarding path end to end. Disable a pilot account in your identity provider and confirm that the person can no longer sign in to Claude Code or Claude on the web. If you are on Enterprise with SCIM, also confirm that the account is deactivated in Claude through provisioning and check how long the change takes to appear, using the timing your vendor documents. If you are not on SCIM, record that removal depends on a manual process and assign an owner for it. The step is done when the disabled test account is shown to be locked out and the offboarding procedure is documented.
Record evidence and set a review cycle
Collect the decision record, the managed settings file as deployed, the pilot test results, the version inventory and the deprovisioning test into one evidence folder for your security reviewer. Name an owner who reviews the device inventory and the identity provider group membership on a schedule your governance process sets. Before wider rollout, confirm with the vendor whether any entitlements or settings have changed since your tests. The step is done when the evidence folder is complete, the owner is named, and the review date is on the calendar.
Evidence a security reviewer asks for on Claude Code sign-in
This table lists the artifacts a security reviewer should ask for before approving Claude Code sign-in, and where each one originates, whether in the admin console, the managed settings file, the Anthropic Trust Center or the reviewer's own test results. Use it as a request list: if a row cannot be produced on demand, treat that gap as a finding before rollout. Most items are configuration evidence the organization can generate itself, while the audit reports come from the vendor.
| Evidence item | What it shows | Where it comes from |
|---|---|---|
| Plan and SSO configuration | Which plan the developers sit on and whether SSO is enabled for the organization | Claude admin console for the organization, checked against the plan features on the Claude pricing page |
| SCIM provisioning status | Whether user lifecycle changes sync from the identity provider, which is listed for Enterprise only | Claude admin console and identity provider sync logs; confirm the plan with Anthropic |
| Managed settings file | The forceLoginMethod and forceLoginOrgUUID values and any allowedProviders restriction in force on each machine | The managed settings file as distributed by MDM or the file location your admins control, not a developer's local copy |
| Distribution record for managed settings | Proof that every managed device received the current file and that developers cannot override it | MDM policy assignment and device compliance reports from your endpoint management tool |
| Startup test results for blocked logins | Claude Code exits when a developer signs in to an unlisted organization | Test run on a managed device with a personal account, kept as a dated record with the Claude Code version |
| Startup test results for stray API keys | Sessions using ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper are blocked when login restrictions are set | Test run on a managed device with each credential variable set, kept with the outcome |
| Console role assignments | Which people hold the Claude Code role, which can only create Claude Code API keys, and which hold the Developer role, which can create any API key | Claude Console member and role list, exported and reviewed against the access request records |
| Gateway OIDC configuration | Which OpenID Connect identity provider signs developers in to a self-hosted gateway and that SAML and LDAP are not in use | Gateway configuration and identity provider application settings in your own environment |
| Credential storage location per OS | Where Claude Code keeps sign-in credentials: the macOS Keychain on macOS, or a file with mode 0600 on Linux | Endpoint inspection on sample machines per operating system, plus the Claude Code authentication docs for the documented locations |
| SOC 2 Type 2 report and ISO 27001 certificate | Vendor assurance over Anthropic's controls, which DeployOpen does not issue or attest to | Anthropic Trust Center at trust.anthropic.com, requested under the vendor's own access terms |
Questions buyers ask before approving Claude Code sign-in
Is SSO included in Claude Team, or do we need Enterprise?
SSO is available on both Team and Enterprise plans, according to the Claude pricing page as of November 2026, so a Team plan can be used with single sign-on. SCIM provisioning is different: the same pricing page lists it on Enterprise only. Confirm the current SSO configuration steps, supported identity providers and any minimum seat count directly with Anthropic before you commit, because plan packaging changes. Check the Claude pricing page for the plan comparison and ask your account contact to confirm in writing which features apply to the seats you buy.
What does SCIM add beyond SSO for Claude Code?
SCIM automates user provisioning and deprovisioning from your identity provider, so accounts are created, updated and removed as people join, change roles or leave. SSO only controls how people sign in; it does not by itself remove access when an employee is offboarded. Because the pricing page lists SCIM on Enterprise only, a Team plan leaves offboarding as a manual task. Ask whether your identity provider's SCIM connector is supported, how deprovisioning takes effect for active sessions, and who owns the mapping between directory groups and Claude roles.
Does the startup block stop every API key from being used with Claude Code?
No. With forceLoginMethod or forceLoginOrgUUID set in managed settings, Claude Code blocks sessions that authenticate with ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper at startup. That covers the common stray-key paths on managed machines, but it applies to the Claude Code client only. Keys used in other tools, CI jobs, scripts or direct API calls are outside this control. Treat the block as one layer, and pair it with key governance in the Claude Console and with checks on developer workstations for environment variables and helper scripts.
What must our own team do, and what could an outside partner take on?
Your team owns the decisions: which identity provider is the source of truth, which organization UUID is allowed, which groups receive Claude Code and Developer or Claude Code console roles, and how exceptions are approved. Those choices should come from your security and IT leaders. An implementation partner can take on defined work such as writing managed settings, testing the startup block on a pilot group, configuring the gateway's OpenID Connect integration or documenting evidence for an audit. DeployOpen plans, implements and documents self-hosted platforms in your own environment and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Scope, deliverables and timelines are agreed in writing before work starts.
What drives the cost of this rollout?
Cost has two parts: subscription and usage fees paid to Anthropic, and any implementation work paid to a partner or handled internally. Anthropic's fees depend on the plan, the number of seats and usage billing, which the pricing page and your contract define. Partner effort depends on the scope you write down: how many identity providers and groups are involved, how many managed endpoints need the managed settings, and whether a self-hosted Claude apps gateway must be deployed and hosted in your cloud. The gateway adds recurring hosting and operations work. Ask any partner for a fixed-scope quote that separates one-time setup from recurring support.
How long will the setup take?
No duration is published on this page, and none has been supplied for this rollout. Timing depends on your identity provider, the number of managed machines, whether you add the self-hosted gateway, and how many pilot rounds your change process requires. Request a written timeline with the scope, including the dependencies you must provide, such as an identity provider administrator, a test tenant and device management access. Compare any timeline against the date when your current developers will lose access to unapproved sign-in paths.
Which login method does the gateway support for developers?
The Claude apps gateway signs developers in through an OpenID Connect identity provider, with examples such as Okta, Microsoft Entra ID, Google Workspace, Keycloak and Dex. It does not support SAML or LDAP directly. If your directory only speaks SAML, plan for a broker or confirm the path with Anthropic before you design the flow. Confirm which redirect, token and group claim settings your identity provider must provide, and test them with a small group before rolling out the managed settings.
Where to confirm each identity claim
Before approving Claude Code for staff, the reviewer should confirm each identity claim in this page against a dated source, because plan terms, login options and managed setting names change. The pricing page at Claude pricing lists which plans include SSO and SCIM. The pricing page states its availability as of November 2026, so the reviewer should check it again on the day of approval and record the date in the approval file. The authentication documentation at Claude Code: Authentication is the source for forceLoginMethod, forceLoginOrgUUID, the startup checks that block API key sessions, the allowedProviders setting and the minimum Claude Code version it requires, and the Console role options. Confirm the version floor against the release you will deploy to managed machines.
If the organization routes sign-in through the self-hosted Claude apps gateway, the gateway documentation at Claude apps gateway is the next read. It sets out which OpenID Connect providers are supported and confirms that SAML and LDAP are not. Ask the vendor or test in your own tenant whether your identity provider's group claims reach the gateway in the form your access policy expects. Also ask Anthropic to confirm, in writing, which identity features apply to your exact contract, since a Team or Enterprise agreement can differ from the public pages. Record each answer with its date, the plan name and the Claude Code version, so the approval holds up at the next audit cycle.
How DeployOpen helps you set up and test Claude Code sign-in
DeployOpen plans and implements the sign-in layer around Claude Code inside your own environment, then tests that only approved identities can start a session. The work covers identity provider configuration, managed settings that block personal accounts and stray API keys, and written test evidence your security and compliance reviewers can check.
How we scope
- We confirm which Claude Code route your developers use: Team or Enterprise, Console with API billing, or the self-hosted gateway.
- We record which identity provider you run and whether SSO or SCIM is available on your plan.
- Engagements are fixed-scope, with the sign-in controls, deliverables and timelines agreed in writing before work starts.
How we build
- We configure the identity provider connection and map groups to Claude Code roles in your environment.
- We set the managed settings that require your organization login and block sessions using API keys or apiKeyHelper.
- We document each setting, its file location and its precedence so administrators can reproduce it on managed machines.
How we hand over
- You receive a written test plan covering personal accounts, wrong-organization logins and key-based sessions.
- We provide test results with screenshots or logs showing which sign-in attempts were blocked and which were allowed.
- We walk your administrators through the configuration and the steps to review it after Claude Code upgrades.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial handover.
- A retainer can re-run the sign-in tests when identity provider settings or Claude Code versions change.
- Ask us to confirm in writing which controls remain your responsibility, such as offboarding and device management.

