> 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 人の所有者を設定できます。所有者のいないチームでは、呼び出し元が所有者になります。

### 場所

組織 → 全般 → 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         |
| 種類      | ブール値         |
| ポータル表示名 | セキュリティ有効ですか? |

#### 所有者

グループの所有者。なしにする場合は空欄のままにします。そうすると、チームの所有者は呼び出し元になります。

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

#### 所有者 2

追加の所有者。なしにする場合は空欄のままにします。

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