> 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/user/general/offboard-user-temporarily.md).

# ユーザーを一時的にオフボード

### 説明

親の休暇や長期休暇などのシナリオ向けに、アクセスを無効化し、グループとライセンスの割り当てを調整し、必要に応じてメンバーシップをエクスポートすることで、ユーザーを一時的にオフボードします。必要に応じて、グループの所有権を削除または置き換えます。

### 場所

ユーザー → 全般 → ユーザーを一時的にオフボード

**Runbook の完全名**

rjgit-user\_general\_offboard-user-temporarily

### 詳細

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

### アクセス許可

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

* **種類**：Microsoft Graph
  * User.ReadWrite.All
    * *サインインを無効化し、セッションを取り消し、直接割り当てられたライセンスを削除します*
  * Group.ReadWrite.All
    * *グループと所有オブジェクトを読み取り、グループの所有権を移行します*
  * GroupMember.ReadWrite.All
    * *グループを変更またはクリアするときに、グループメンバーシップを追加および削除します*
* **種類**：Office 365 Exchange Online
  * Exchange.ManageAsApp
    * *ユーザーを配布グループから削除するために使用されるアプリ専用の Exchange Online セッションを開きます*

#### 権限に関する注意

Azure IaaS: エクスポートに使用されるサブスクリプションまたはリソース グループへの共同作成者アクセス

#### RBAC ロール

* ユーザー管理者
  * *ユーザーへの書き込みがロールを持つユーザーに対しても成功するようにするために必要です*
* Exchange 管理者
  * *配布グループのメンバーシップを削除するアプリ専用の Exchange Online セッションに必要です*

### パラメーター

#### ユーザー名

対象ユーザーのユーザー プリンシパル名。

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

#### RevokeAccess

true に設定すると、ユーザーの更新トークンとアクティブなセッションを取り消します。

| プロパティ | 値    |
| ----- | ---- |
| 必須    | いいえ  |
| 既定値   | はい   |
| 種類    | ブール値 |

#### DisableUser

true に設定すると、サインイン用のユーザー アカウントを無効化します。

| プロパティ | 値    |
| ----- | ---- |
| 必須    | いいえ  |
| 既定値   | はい   |
| 種類    | ブール値 |

#### exportResourceGroupName

ストレージにデータをエクスポートするための Azure リソース グループ名。

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

#### exportStorAccountName

ストレージにデータをエクスポートするための Azure Storage Account 名。

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

#### exportStorAccountLocation

Storage Account の作成時に使用する Azure リージョン。

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

#### exportStorAccountSKU

Storage Account の作成時に使用する SKU 名。

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

#### exportStorContainerGroupMembershipExports

グループ メンバーシップのエクスポートに使用するコンテナー名。

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

#### exportGroupMemberships

true に設定すると、ユーザーの現在のグループメンバーシップを Azure Storage にエクスポートします。

| プロパティ    | 値                        |
| -------- | ------------------------ |
| 必須       | いいえ                      |
| 既定値      | False                    |
| 種類       | ブール値                     |
| ポータルで非表示 | はい（Runbook のカスタマイズで事前設定） |

#### ChangeLicensesSelector

直接割り当てられたライセンスの扱い方を制御します。

| プロパティ   | 値                   |
| ------- | ------------------- |
| 必須      | いいえ                 |
| 既定値     | 0                   |
| 種類      | Int32               |
| ポータル表示名 | 直接割り当てられたライセンスを変更する |

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

| ポータルオプション              | 値 |
| ---------------------- | - |
| 割り当てられたライセンスを変更しない     | 0 |
| 直接割り当てられたライセンスをすべて削除する | 2 |

#### ChangeGroupsSelector

割り当てられたグループの扱い方を制御します。「変更」と「すべて削除」のどちらも「groupToAdd」を反映します。

| プロパティ   | 値                |
| ------- | ---------------- |
| 必須      | いいえ              |
| 既定値     | 0                |
| 種類      | Int32            |
| ポータル表示名 | 割り当てられたグループを変更する |

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

| ポータルオプション         | 値 |
| ----------------- | - |
| 割り当てられたグループを変更しない | 0 |
| ユーザーのグループを変更する    | 1 |
| すべてのグループを削除する     | 2 |

#### GroupToAdd

グループの変更が有効な場合に、追加または保持するグループ。

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

#### GroupsToRemovePrefix

命名規則に一致するグループを削除するために使用するプレフィックス。

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

#### RevokeGroupOwnership

true に設定すると、ユーザーのグループ所有権を削除または置き換えます。

| プロパティ   | 値            |
| ------- | ------------ |
| 必須      | いいえ          |
| 既定値     | False        |
| 種類      | ブール値         |
| ポータル表示名 | グループ所有権を処理する |

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

| ポータルオプション               | 値   |
| ----------------------- | --- |
| ユーザーは所有者のまま / 変更しない     | いいえ |
| このユーザーのグループ所有権を削除/置き換える | はい  |

#### ReplacementOwnerName

オフボードされたユーザーが最後に残ったグループ所有者である場合、誰がグループ所有権を引き継ぎますか? 必要な場合にのみ使用されます。

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

[Runbook Reference の概要に戻る](/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/user/general/offboard-user-temporarily.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
