> 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": "オッフェンバッハ",
                                "Country": "ドイツ"
                            }
                        }
                    },
                    {
                        "Display": "DE-DEG",
                        "Customization": {
                            "Default": {
                                "StreetAddress": "Lateinschulgassse 24-26",
                                "PostalCode": "94469",
                                "City": "デッゲンドルフ",
                                "Country": "ドイツ"
                            }
                        }
                    },
                    {
                        "Display": "DE-HH",
                        "Customization": {
                            "Default": {
                                "StreetAddress": "Hans-Henny-Jahnn-Weg 53",
                                "PostalCode": "22085",
                                "City": "ハンブルク",
                                "Country": "ドイツ"
                            }
                        }
                    },
                    {
                        "Display": "FI-HS",
                        "Customization": {
                            "Default": {
                                "StreetAddress": "どこか 42",
                                "PostalCode": "12345",
                                "City": "ヘルシンキ",
                                "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"
            ]
        }
    }
}
```

ランブックのカスタマイズ方法の詳細については、 [ランブック カスタマイズ ガイド](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 管理者
  * *配布グループとオンライン アーカイブを管理するアプリ専用の Exchange Online セッションに必要です*

### パラメーター

#### 名

ユーザーの名。

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

#### 姓

ユーザーの姓。

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

#### UserPrincipalName

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

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

#### MailNickname

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

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

#### DisplayName

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

| プロパティ    | 値                         |
| -------- | ------------------------- |
| 必須       | false                     |
| 既定値      |                           |
| 種類       | 文字列                       |
| ポータルで非表示 | はい (Runbook のカスタマイズで事前設定) |

#### 会社名

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

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

#### 役職

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

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

#### 部署

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

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

#### 上司ID

上司になるユーザー。

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

#### スポンサーID

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

| プロパティ | 値         |
| ----- | --------- |
| 必須    | false     |
| 既定値   |           |
| 種類    | String\[] |

#### 携帯電話

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

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

#### 所在地名

プロファイルに表示される Office の所在地。runbook customization のテンプレートを使うと、1つ選ぶだけで住所フィールドも入力されます。

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

#### 住所

プロファイルに表示される住所の一部です。選択した Office の所在地テンプレートで入力されます。

| プロパティ   | 値     |
| ------- | ----- |
| 必須      | false |
| 既定値     |       |
| 種類      | 文字列   |
| ポータル表示名 | 住所    |

#### 郵便番号

プロファイルに表示される住所の一部です。選択した Office の所在地テンプレートで入力されます。

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

#### 市

プロファイルに表示される住所の一部です。選択した Office の所在地テンプレートで入力されます。

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

#### 州

プロファイルに表示される住所の一部です。

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

#### 国

プロファイルに表示される住所の一部です。選択した Office の所在地テンプレートで入力されます。

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

#### 利用場所

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

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

#### 既定のライセンス

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

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

#### 既定のグループ

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

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

#### 初期パスワード

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

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

#### EXO アーカイブを有効にする

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

| プロパティ   | 値                     |
| ------- | --------------------- |
| 必須      | false                 |
| 既定値     | False                 |
| 種類      | ブール値                  |
| ポータル表示名 | アーカイブ メールボックスを作成しますか? |

[Runbook リファレンスの概要に戻る](/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.
