> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OrganizationSelection

> Universal Login の `organization-selection` 画面をカスタマイズするために使用できる、すべてのプロパティとメソッドについて説明します。

OrganizationSelection クラスは、`organization-selection` 画面の機能を実装します。この画面では、ユーザーは続行先の 組織 を選択できます。

![](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/3okogBPGS1KmSlhUSk9xhk/07bc19ad8b58772d3de872a49b8f6ca5/Screenshot_2025-03-25_at_20.27.41.png)

## コンストラクター

OrganizationSelection 画面マネージャーのインスタンスを作成します。

```typescript Example theme={null}
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';
const organizationSelectionManager = new OrganizationSelection();
await organizationSelectionManager.continueWithOrganizationName({
  organizationName: 'testOrganizationName',
});
```

## プロパティ

**branding** `[BrandingMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers)`

ブランディングテーマや設定など、ブランディング関連の構成情報を提供します。

**client** `[ClientMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ClientMembers)`

`organization-selection` 画面向けに、`id`、`name`、`logoUrl` などのクライアント関連の設定を提供します。

**countryCodes** `[CountryCodesMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/CountryCodesMembers)`

`organization-selection` 画面向けに、`available` や `recommended` など、電話番号入力用の国コードデータを提供します。

**experiment** `[ExperimentMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ExperimentMembers)`

この画面で有効な [Experiment Center](/docs/docs/ja-jp/customize/experiment-center) の experiment です。有効な experiment がない場合 (または画面が `context_configuration` でオプトインしていない場合) は `null` になります。

**organization** `[OrganizationMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers)`

`id` や `name` など、ユーザーの組織に関する情報を提供します。

**prompt** `[PromptMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/PromptMembers)`

認証フローにおける現在の prompt に関するデータを含みます。

**screen** `[ScreenMembersOnOrganizationSelection](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnOrganizationSelection)`

設定やコンテキストなど、`organization-selection` 画面に固有の詳細を含みます。

**tenant** `[TenantMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TenantMembers)`

`id` や関連するメタデータなど、テナントに関するデータを含みます。

**transaction** `[TransactionMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers)`

現在有効な識別子やフローの状態など、`organization-selection` 画面に関する取引固有のデータを提供します。

**untrustedData** `[UntrustedDataMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembers)`

組織選択フロー中のユーザー入力など、SDK に渡される信頼できないデータを扱います。

**user** `[UserMembers](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/UserMembers)`

`username`、`email`、`roles` など、アクティブなユーザーの詳細情報です。

## メソッド

**changeLanguage** `Promise\<void\>`

このメソッドは、Universal Login ページの表示言語を変更します。

```typescript Example theme={null}
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';
const organizationSelectionManager = new OrganizationSelection();
organizationSelectionManager.changeLanguage({
  language: 'fr',
});
```

**メソッドのパラメータ**

**パラメータ**

**options**

[LanguageChangeOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions)。

**language** `string` *required*

使用する言語のlocaleコード (たとえば、`'en'`、`'fr'`、`'es'`) 。

**persist?** `"session"`

`'session'` に設定すると、選択した言語はセッションの間保持されます。

**continueWithOrganizationName** `Promise\<void\>`

このメソッドは、選択した組織名を使用して続行します。

```typescript Example theme={null}
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';
const organizationSelectionManager = new OrganizationSelection();
await organizationSelectionManager.continueWithOrganizationName({
  organizationName: 'testOrganizationName',
});
```

**メソッドのパラメータ**

**パラメータ**

**options**

[ContinueWithOrganizationNameOptions](/docs/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/ContinueWithOrganizationNameOptions)。

**organizationName** `string` *required*

続行に使用する組織の名前。

**getErrors** `[Error](/docs/ja-jp/libraries/acul/js-sdk/Screens/interfaces/Error)[]`

このメソッドは、コンテキストから取引エラーの配列を取得します。存在しない場合は空の配列を返します。

**skipOrganizationSelection** `Promise\<void\>`

このメソッドは、組織の選択をスキップし、ユーザーの個人アカウントで続行します。

```typescript Example theme={null}
import OrganizationSelection from '@auth0/auth0-acul-js/organization-selection';
const organizationSelectionManager = new OrganizationSelection();
await organizationSelectionManager.skipOrganizationSelection();
```
