> 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/security/revoke-or-restore-access.md).

# アクセスを取り消すか復元

このユーザーのサインインとセッションをブロックするか、アクセスを復元します

### 説明

このユーザーのサインインをブロックし、現在のセッションを終了します。これにより、盗まれたトークンは、たとえばインシデント発生時などに直ちに無効になります。ユーザーの再有効化でブロックは解除されますが、終了したセッションは復元されません。

### 場所

ユーザー → セキュリティ → アクセスの取り消しまたは復元

**完全な Runbook 名**

rjgit-user\_security\_revoke-or-restore-access

### 詳細

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

### 権限

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

* **種類**: Microsoft Graph
  * User.ReadWrite.All
    * *accountEnabled を設定し、ユーザーのサインイン セッションを取り消します*

#### RBAC ロール

* ユーザー管理者
  * *ロールが割り当てられたユーザーでもサインインのブロックとセッションの取り消しが成功するようにするために必要です*

### パラメーター

#### UserName

Runbook が対象とするユーザーのユーザー プリンシパル名。ポータルで選択されたユーザーから設定されます。

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

#### 取り消す

アクセスを取り消すと、サインインがブロックされ、セッションが終了します。ユーザーを再有効化すると、再びサインインできるようになります。

| プロパティ   | 値     |
| ------- | ----- |
| 必須      | false |
| 既定値     | True  |
| 種類      | ブール値  |
| ポータル表示名 | アクション |

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

| ポータル オプション | 値     |
| ---------- | ----- |
| ユーザーを再有効化  | false |
| アクセスを取り消す  | true  |

[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/user/security/revoke-or-restore-access.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.
