settings.json

forceLoginOrgUUID

型string記述場所どの設定ファイルでも可

OAuth ログインに使用する組織の UUID。または、複数の組織を許可する UUID の配列。空配列はフェイルクローズとなり、すべてのログインをブロックする。See https://code.claude.com/docs/en/authentication#restrict-login-to-your-organization

既定値: 未設定であり、どの組織でもログインできる。

記述例

{
  "forceLoginOrgUUID": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"]
}

使い方・用途

  • 開発者の claude.ai ログインを特定の Anthropic 組織に属するものに限定したい場合に、管理対象設定で組織の UUID を設定する。
  • 所属していない組織の claude.ai 認証情報で起動した Claude Code を起動時にエラーで停止させたい場合に使う。
  • claude.ai または Claude Console のログイン時に、設定した組織がサインインページであらかじめ選択された状態にしたい場合に使う。
英語原文(公式ドキュメントより)

Organization UUID to use for OAuth login, or an array of UUIDs to allow several organizations. An empty array fails closed and blocks every login. See https://code.claude.com/docs/en/authentication#restrict-login-to-your-organization

関連する変更履歴

v2.1.300(1件)

Fixed
forceLoginOrgUUID によるログイン拒否の際に、拒否された組織のトークンが保存されたままになったり、/login の後も生き残ったりする問題を修正した
英語原文を表示
Fixed a login refused by forceLoginOrgUUID leaving the refused organization's token stored, or live after /login

v2.1.299(3件)

Added
管理設定でインストールされた mod 向けに $.session.identity() を追加した。セッションのサインイン方法、および管理設定の forceLoginOrgUUID がその組織を指定している場合に、組織とメールアドレスを取得できる。
英語原文を表示
Added $.session.identity() for mods installed by managed settings: how the session is signed in, and its organization and email when managed forceLoginOrgUUID lists that organization

変更後

組織の管理対象設定でインストールされた mod から、セッションのログイン方法や所属組織・メールアドレスといった ID 情報を取得できる。これにより、組織のポリシーに応じた動きをする mod を作成できる。

Fixed
forceLoginOrgUUID を MDM や managed-settings ファイルで設定したマシンで、保存済みログインのプランがローカルで変更された場合に、管理対象設定や組織ポリシーが取得されない問題を修正した
英語原文を表示
Fixed managed settings and organization policy not being fetched when the stored login's plan was changed locally on machines whose MDM or managed-settings file sets forceLoginOrgUUID
Fixed
MDM または managed-settings ファイルの forceLoginOrgUUID と forceLoginMethod が、サーバー管理の設定によって隠されたり上書きされたりする問題を修正した
英語原文を表示
Fixed forceLoginOrgUUID and forceLoginMethod from MDM or the managed-settings file being hidden or replaced by server-managed settings

v2.1.284(1件)

Improved
マネージド設定がサインイン(forceLoginMethod または forceLoginOrgUUID)と API キー・トークン・apiKeyHelper の設定を要求する場合の起動時の拒否を改善した。現在使用中の認証情報、その設定場所、削除方法を示すようになった
英語原文を表示
Improved the startup refusal when managed settings require a sign-in (forceLoginMethod or forceLoginOrgUUID) and an API key, token or apiKeyHelper is configured: it now names the credential in use, where it is set, and how to remove it

変更後

組織のポリシーでサインインが強制されている環境で API キーやトークンなどの資格情報が原因で起動できなかったとき、どの資格情報がどこで設定されていて、どう削除すればよいかがエラーメッセージから分かるようになり、問題を素早く解消して起動できる。

関連ドキュメント

v2.1.161(1件)

Fixed
管理設定ポリシー(forceLoginOrgUUID/forceLoginMethod)が、サードパーティプロバイダー(Bedrock、Vertex、Foundry、Mantle)を使用するセッションまで誤ってブロックしていた問題を修正。
英語原文を表示
Fixed forceLoginOrgUUID/forceLoginMethod managed-settings policies blocking third-party provider sessions (Bedrock, Vertex, Foundry, Mantle) alongside the org pin (regression in 2.1.146)

変更後

エンタープライズ環境のセキュリティ設定を維持したまま、業務に必要な様々な AI インフラを柔軟に活用できるようになります。

関連ドキュメント

v2.1.147(1件)

Fixed
エンタープライズ向けのログイン制限設定(forceLoginOrgUUIDおよびforceLoginMethod)が、サードパーティプロバイダーやAPIキーを使用したセッションでも正しく適用されるよう修正されました。
英語原文を表示
Fixed enterprise login restrictions (forceLoginOrgUUID and forceLoginMethod managed-settings) not being enforced against third-party-provider and API-key sessions

変更後

組織全体のセキュリティポリシーが一貫して適用されるため、管理者はアクセス権限をより確実に制御でき、企業のコンプライアンス維持に役立ちます。

関連ドキュメント

v2.1.146(1件)

Fixed
管理設定ポリシーの forceLoginOrgUUID と forceLoginMethod が、サードパーティプロバイダーや API キーによる接続時にも強制適用されるよう修正されました。
英語原文を表示
Fixed forceLoginOrgUUID and forceLoginMethod managed-settings policies not being enforced against third-party-provider and API-key sessions

変更後

企業の管理者は、認証経路を問わず特定の組織アカウントへの利用を確実に制限でき、組織全体のセキュリティとコンプライアンスを維持しやすくなります。

関連ドキュメント

v2.1.144(1件)

Fixed
forceLoginMethod と forceLoginOrgUUID が設定されている場合に、リモートセッションへのログインが「Can't access this organization」で失敗する問題を修正しました
英語原文を表示
Fixed remote-session login failing with "Can't access this organization" for users with forceLoginMethod and forceLoginOrgUUID set

変更後

エンタープライズユーザーが会社のガバナンスを維持したまま、全ての Claude Code 機能を利用できるようになります。

関連ドキュメント