> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/general/invite-external-guest-users.md).

# 外部ゲスト ユーザーを招待

外部の人物をゲスト ユーザーとして招待

### 説明

外部のメール アドレスに Microsoft Entra ID のゲスト招待を送信します。必要に応じてゲストをグループに追加し、名前、会社、使用場所、マネージャー、スポンサーなどのプロファイル詳細をゲスト アカウントにすぐに設定します。招待メールとランディング ページはカスタマイズできます。メールがない場合、ジョブ出力にはゲストが招待を承諾するために使用するリンクが表示されます。

### 一般的な使用例

* 基本的なゲスト招待: メール アドレスと表示名のみを指定し、すべてのプロファイル パラメーターとグループ パラメーターは空欄のままにできます。
* 完全なオンボーディング: すべてのオプション フィールドを指定してプロファイル プロパティを設定し、マネージャーとスポンサーを割り当て、1 回の実行でゲストをグループに追加します。

### パラメーターの相互作用

* プロファイル プロパティ (`givenName`, `surname`, `companyName`, `usageLocation`) は空でない場合にのみ適用されます。これらを省略すると、更新呼び出しは完全にスキップされます。
* マネージャーの割り当て、スポンサーの割り当て、およびグループ メンバーシップには、それぞれ対応するパラメーターが必要です。指定されない場合は、いずれも通知なしでスキップされます。
* 使用場所は、2 文字の ISO 3166-1 国コードである必要があります。たとえば `GB` 英国の場合（UK ではなく `UK`) および `GR` ギリシャの場合（EL ではなく `EL`）。不明なコードがあると、招待が送信される前に実行が停止するため、ゲスト アカウントも招待メールも作成されません。

### メールなしの招待

「招待メールを送信しますか?」がオフの場合、Entra ID はメールを送信せずにゲスト アカウントを作成します。これは、Entra 管理センターで「招待メッセージを送信」のチェックを外すのと同じです。ゲストは最初のサインインまで「承諾待ち」の状態のままです。

* ジョブ出力では、"Invite Guest User" セクションに引き換えリンクが 1 回表示されます。たとえば自分のメールやチャット メッセージなど、別の手段でゲストに渡してください。
* 引き換えリンクの代わりに、ゲストは Tenant を含むリンクからサインインできます。たとえば `https://myapps.microsoft.com/?tenantid=<tenant id>`。同意プロンプトは最初のサインイン時に表示されます。
* 招待されたアドレスのエイリアスでサインインするゲストには、引き換えリンクが必要です。
* 「招待をカスタマイズしますか?」で指定したリダイレクト URL は引き続き適用されます。引き換えリンクで承諾した後、ゲストはそこに移動します。
* 招待メッセージはメールの一部としてのみ使用され、メールなしでは使用されません。

### 場所

Organization → General → 外部ゲスト ユーザーを招待

**完全な Runbook 名**

rjgit-org\_general\_Invite-external-guest-users

### 詳細

| プロパティ    | 値                                                                                        |
| -------- | ---------------------------------------------------------------------------------------- |
| バージョン    | 2.1.0                                                                                    |
| 必須モジュール  | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>Microsoft.Graph.Authentication (>= 2.41.2)</p> |
| スケジュール可能 | いいえ                                                                                      |

### アクセス許可

#### アプリケーションのアクセス許可

* **型**: Microsoft Graph
  * Group.ReadWrite.All
    * *対象グループを検証し、/groups/{id}/members/$ref 経由でゲストを追加します*
  * Organization.Read.All
    * *既定の招待リダイレクト URL を構築するために Tenant ID を読み取ります*
  * User.ReadWrite.All
    * *招待を作成し、ゲスト プロファイルのプロパティを更新して、マネージャーとスポンサーを設定します*

### パラメーター

#### InvitedUserEmail

招待する相手のメール アドレス。

| プロパティ | 値    |
| ----- | ---- |
| 必須    | true |
| 既定値   |      |
| 型     | 文字列  |

#### InvitedUserDisplayName

ディレクトリでゲストに表示される名前。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### GroupId

ゲストが追加されるグループ。ランブックのカスタマイズで事前設定されます。空欄の場合はなしです。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### GivenName

ゲストの名。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### Surname

ゲストの姓。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### CompanyName

ゲストの勤務先の会社。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### ManagerName

ゲストのマネージャーになるユーザー。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### SponsorName

ゲストのスポンサーとして記録されるユーザー。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### SendInvitationMessage

招待をゲストにメール送信します。メールがない場合、ジョブ出力にはゲストが招待を承諾するために使用するリンクが表示されるため、別の手段で渡してください。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | True  |
| 型     | ブール値  |

#### CustomizeInvitation

独自の招待メッセージとリダイレクト URL のフィールドを表示します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | False |
| 型     | ブール値  |

#### InvitationMessage

招待メールに含まれるテキスト。招待メールが送信されない場合は使用されません。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### InviteRedirectUrl

承諾後にゲストが移動するページ。たとえば SharePoint サイトなど。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### UsageLocation

ライセンスを割り当てる前に必要な 2 文字の ISO 国コード。たとえば US、DE、または英国の GB です。UK のような不明なコードがあると、招待が送信される前に実行が停止します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

[Runbook リファレンスの概要に戻る](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/general/invite-external-guest-users.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
