> 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/add-user.md).

# ユーザーを追加

Entra ID に新しいユーザー アカウントを作成

### 説明

Entra ID にクラウドユーザーを作成し、名前、会社、役職、上司、スポンサー、住所などの通常のプロフィール詳細を設定します。サインイン名、エイリアス、表示名は未入力の場合は名前から生成され、初期パスワードは指定がない場合に生成されます。オプションで、ユーザーにライセンスグループ、追加のグループ、Exchange Online のアーカイブ メールボックスを割り当てます。

### 所在地と会社をテンプレートとして提供する

住所フィールドと会社は既定では自由入力です。runbook カスタマイズ テンプレートを使用すると、オペレーターは Office の所在地を選択でき、それによって住所ブロックが入力されてロックされ、一覧から会社も選べます。以下の例では、そのようなテンプレートを定義し、runbook のフィールドにバインドしています:

```json
{
    "Templates": {
        "Options": [
            {
                "$id": "LocationOptions",
                "$values": [
                    {
                        "Display": "DE-OF",
                        "Customization": {
                            "Default": {
                                "StreetAddress": "Kaiserstraße 39",
                                "PostalCode": "63065",
                                "City": "Offenbach",
                                "Country": "ドイツ"
                            }
                        }
                    },
                    {
                        "Display": "DE-DEG",
                        "Customization": {
                            "Default": {
                                "StreetAddress": "Lateinschulgassse 24-26",
                                "PostalCode": "94469",
                                "City": "Deggendorf",
                                "Country": "ドイツ"
                            }
                        }
                    },
                    {
                        "Display": "DE-HH",
                        "Customization": {
                            "Default": {
                                "StreetAddress": "Hans-Henny-Jahnn-Weg 53",
                                "PostalCode": "22085",
                                "City": "Hamburg",
                                "Country": "ドイツ"
                            }
                        }
                    },
                    {
                        "Display": "FI-HS",
                        "Customization": {
                            "Default": {
                                "StreetAddress": "Somewhere 42",
                                "PostalCode": "12345",
                                "City": "Helsinki",
                                "Country": "フィンランド"
                            }
                        }
                    }
                ]
            },
            {
                "$id": "CompanyOptions",
                "$values": [
                    {
                        "Id": "gkg",
                        "Display": "glueckkanja-gab",
                        "Value": "glueckkanja-gab AG"
                    },
                    {
                        "Id": "pp",
                        "Display": "PrimePulse",
                        "Value": "PrimePulse AG"
                    }
                ]
            }
        ]
    },
    "Runbooks": {
        "rjgit-org_general_add-user": {
            "ParameterList": [
                {
                    "DisplayName": "Office の所在地",
                    "DisplayAfter": "CompanyName",
                    "Select": {
                        "Options": {
                            "$ref": "LocationOptions"
                        }
                    }
                },
                {
                    "Name": "CompanyName",
                    "Select": {
                        "Options": {
                            "$ref": "CompanyOptions"
                        },
                        "AllowEdit": false
                    }
                }
            ],
            "ReadOnly": [
                "StreetAddress",
                "PostalCode",
                "City",
                "Country"
            ]
        }
    }
}
```

runbook のカスタマイズ方法の詳細については、 [Runbook カスタマイズ ガイド](https://docs.realmjoin.com/automation/runbooks/runbook-customization).

### 場所

組織 → 全般 → ユーザーの追加

**完全な Runbook 名**

rjgit-org\_general\_add-user

### 詳細

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

### アクセス許可

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

* **型**: Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *配布グループとオンラインアーカイブの有効化に使用する、アプリ専用の Exchange Online セッションを開きます*

#### RBAC ロール

* ユーザー管理者
  * *ユーザーの作成、上司・スポンサー・グループの割り当て、ライセンスデータの読み取りを支援します*
* Exchange Administrator
  * *配布グループとオンラインアーカイブを管理するアプリ専用の Exchange Online セッションに必要です*

### パラメーター

#### GivenName

ユーザーの名。

| プロパティ    | 値    |
| -------- | ---- |
| 必須       | true |
| 既定値      |      |
| 型        | 文字列  |
| ポータルの表示名 | 名    |

#### Surname

ユーザーの姓。

| プロパティ    | 値    |
| -------- | ---- |
| 必須       | true |
| 既定値      |      |
| 型        | 文字列  |
| ポータルの表示名 | 姓    |

#### ユーザー プリンシパル名

ユーザーのサインイン名。空欄の場合は名前から生成されます。

| プロパティ    | 値                        |
| -------- | ------------------------ |
| 必須       | false                    |
| 既定値      |                          |
| 型        | 文字列                      |
| ポータルで非表示 | はい（runbook のカスタマイズで事前設定） |

#### MailNickname

メールボックスのエイリアス。空欄の場合はサインイン名から生成されます。

| プロパティ    | 値                        |
| -------- | ------------------------ |
| 必須       | false                    |
| 既定値      |                          |
| 型        | 文字列                      |
| ポータルで非表示 | はい（runbook のカスタマイズで事前設定） |

#### DisplayName

空欄の場合は名と姓から生成されます。

| プロパティ    | 値                        |
| -------- | ------------------------ |
| 必須       | false                    |
| 既定値      |                          |
| 型        | 文字列                      |
| ポータルで非表示 | はい（runbook のカスタマイズで事前設定） |

#### CompanyName

ユーザーが所属する会社。

| プロパティ    | 値     |
| -------- | ----- |
| 必須       | false |
| 既定値      |       |
| 型        | 文字列   |
| ポータルの表示名 | 会社    |

#### JobTitle

プロフィールとアドレス帳に表示されます。

| プロパティ    | 値     |
| -------- | ----- |
| 必須       | false |
| 既定値      |       |
| 型        | 文字列   |
| ポータルの表示名 | 役職    |

#### 部署

ユーザーが所属する部署。

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

#### ManagerId

上司になるユーザー。

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

#### SponsorIds

新規ユーザーのスポンサーとして登録されるユーザー。複数選択できます。

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

#### MobilePhone

プロフィールとアドレス帳に表示されます。

| プロパティ    | 値     |
| -------- | ----- |
| 必須       | false |
| 既定値      |       |
| 型        | 文字列   |
| ポータルの表示名 | 携帯電話  |

#### LocationName

プロフィールに表示される Office の所在地。runbook カスタマイズのテンプレートで 1 つ選ぶと、住所フィールドも入力されます。

| プロパティ    | 値           |
| -------- | ----------- |
| 必須       | false       |
| 既定値      |             |
| 型        | 文字列         |
| ポータルの表示名 | Office の所在地 |

#### StreetAddress

プロフィールに表示される郵送先住所の一部。Office の所在地テンプレートを選ぶと入力されます。

| プロパティ    | 値     |
| -------- | ----- |
| 必須       | false |
| 既定値      |       |
| 型        | 文字列   |
| ポータルの表示名 | 番地    |

#### PostalCode

プロフィールに表示される郵送先住所の一部。Office の所在地テンプレートを選ぶと入力されます。

| プロパティ    | 値     |
| -------- | ----- |
| 必須       | false |
| 既定値      |       |
| 型        | 文字列   |
| ポータルの表示名 | 郵便番号  |

#### City

プロフィールに表示される郵送先住所の一部。Office の所在地テンプレートを選ぶと入力されます。

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

#### State

プロフィールに表示される郵送先住所の一部。

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

#### Country

プロフィールに表示される郵送先住所の一部。Office の所在地テンプレートを選ぶと入力されます。

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

#### UsageLocation

ユーザーが取得できるライセンスを決定する 2 文字の国コード。たとえば DE。

| プロパティ    | 値     |
| -------- | ----- |
| 必須       | false |
| 既定値      |       |
| 型        | 文字列   |
| ポータルの表示名 | 使用場所  |

#### DefaultLicense

ライセンスを割り当てるグループの表示名。ユーザーはそのグループに追加されます。指定しない場合は空欄にします。

| プロパティ    | 値              |
| -------- | -------------- |
| 必須       | false          |
| 既定値      |                |
| 型        | 文字列            |
| ポータルの表示名 | 割り当てるライセンスグループ |

#### DefaultGroups

ユーザーが追加される他のグループの表示名。カンマ区切りで指定します。

| プロパティ    | 値        |
| -------- | -------- |
| 必須       | false    |
| 既定値      |          |
| 型        | 文字列      |
| ポータルの表示名 | 追加するグループ |

#### InitialPassword

ユーザーの初期パスワード。空欄にすると生成され、出力に表示されます。

| プロパティ    | 値       |
| -------- | ------- |
| 必須       | false   |
| 既定値      |         |
| 型        | 文字列     |
| ポータルの表示名 | 初期パスワード |

#### EnableEXOArchive

新規ユーザーの Exchange Online アーカイブ メールボックスを有効にします。

| プロパティ    | 値                     |
| -------- | --------------------- |
| 必須       | false                 |
| 既定値      | 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/add-user.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.
