> 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-office365-group.md).

# Office 365 グループを追加

Microsoft 365 グループを作成し、必要に応じてチームを作成

### 説明

SharePoint サイトを持つ Microsoft 365 グループを作成し、要求に応じて Microsoft Teams のチームに変換します。可視性、メール、セキュリティの設定、および最大 2 人の所有者を設定できます。所有者のいないチームには、呼び出し元が所有者として割り当てられます。

### 場所

Organization → General → Office365 グループを追加

**完全な Runbook 名**

rjgit-org\_general\_add-office365-group

### 詳細

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

### アクセス許可

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

* **型**: Microsoft Graph
  * Group.Create
    * *可視性、メール設定、所有者/メンバーの関連付けを含む新しい Microsoft 365 グループを作成します*
  * Team.Create
    * *CreateTeam が有効な場合、グループを Teams のチームに昇格します*
  * Group.Read.All
    * *作成前に、同じメールニックネームを持つ既存のグループがないか確認します*
  * User.Read.All *(オプション — 機能: 所有者の割り当て)*
    * *所有者が指定されている場合、/users/{upn} を通じて所有者ユーザーを特定します*

### パラメーター

#### MailNickname

グループのエイリアス。メールアドレスと SharePoint URL に使用されます。

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

#### DisplayName

グループに表示される名前です。空欄のままにするとメールニックネームが使用されます。

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

#### CreateTeam

SharePoint サイトを持つグループのみを作成するか、その上に Microsoft Teams のチームも作成します。

| プロパティ    | 値                  |
| -------- | ------------------ |
| 必須       | false              |
| 既定値      | False              |
| 型        | ブール値               |
| ポータルの表示名 | Teams のチームを作成しますか？ |

**ポータル オプション**

| ポータル オプション              | 値     |
| ----------------------- | ----- |
| SharePoint サイトを持つグループのみ | false |
| Microsoft Teams のチームも作成 | true  |

#### 非公開

公開グループは組織内の誰でも見つけて参加できますが、非公開グループはメンバーのみが参加できます。

| プロパティ    | 値     |
| -------- | ----- |
| 必須       | false |
| 既定値      | False |
| 型        | ブール値  |
| ポータルの表示名 | 公開範囲  |

**ポータル オプション**

| ポータル オプション | 値     |
| ---------- | ----- |
| 公開         | false |
| 非公開        | true  |

#### MailEnabled

グループにメールボックスとメール アドレスを付与します。

| プロパティ    | 値         |
| -------- | --------- |
| 必須       | false     |
| 既定値      | False     |
| 型        | ブール値      |
| ポータルの表示名 | メール有効ですか？ |

#### SecurityEnabled

グループを権限やアクセスの割り当てに使用できるようにします。

| プロパティ    | 値            |
| -------- | ------------ |
| 必須       | false        |
| 既定値      | True         |
| 型        | ブール値         |
| ポータルの表示名 | セキュリティ有効ですか？ |

#### Owner

グループの所有者です。指定しない場合は空欄のままにしてください。チームの場合は、呼び出し元が所有者として設定されます。

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

#### 所有者2

追加の所有者です。不要な場合は空欄のままにしてください。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | 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-office365-group.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.
