> 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/create-temporary-access-pass.md).

# Temporary Access Pass を作成

### 説明

Microsoft Entra ID のユーザーに対して、新しい Temporary Access Pass (TAP) 認証方法を作成します。新しいものを作成する前に、そのユーザーに既存の TAP は削除されます。必要に応じて、新しく作成された TAP についてユーザーのプライマリ メール アドレスに通知メールを送信します。メールの言語は、ユーザーの使用場所に基づいて自動的に決定されます。

### ユーザー通知を有効にする

この runbook は、Temporary Access Pass をユーザーにメールで送信します。これを有効にするには、runbook のカスタマイズでユーザー通知を有効にする必要があります。

このための json 構成は次のとおりです:

```json
"rjgit-user_security_create-temporary-access-pass": {
    "parameters": {
        "UserName": {
            "Hide": true
        },
        "NotifyUser": {
            "Default": true,
            "Hide": true
        },
        "EmailFrom": {
            "Hide": true
        },
        "ServiceDeskDisplayName": {
            "Hide": true
        },
        "ServiceDeskEmail": {
            "Hide": true
        },
        "ServiceDeskPhone": {
            "Hide": true
        },
        "ServiceDeskPortalUrl": {
            "Hide": true
        },
        "ServiceDeskTicketUrl": {
            "Hide": true
        },
        "CallerName": {
            "Hide": true
        }
    }
}
```

runbook をカスタマイズする方法の詳細については、 [Runbook カスタマイズガイド](https://docs.realmjoin.com/automation/runbooks/runbook-customization).

### メール送信に関する設定

メール レポートの送信は任意で、受信者（`EmailTo`）が指定されている場合にのみ行われます。送信者アドレスは、 `RJReport.EmailSender` Tenant 設定から取得されます。

この runbook は Microsoft Graph API を使用してメールを送信します。Graph API 経由でメールを送信するには、runbook のカスタマイズで既存のメールアドレスを構成する必要があります。

詳細については [RealmJoin Report Settings のドキュメント](https://docs.realmjoin.com/automation/runbooks/runbook-report-settings) を参照してください。

### 場所

ユーザー → セキュリティ → Temporary Access Pass の作成

**完全な Runbook 名**

rjgit-user\_security\_create-temporary-access-pass

### アクセス許可

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

* **種類**: Microsoft Graph
  * UserAuthenticationMethod.ReadWrite.All

### パラメーター

#### UserName

対象ユーザーの User Principal Name。

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

#### LifetimeInMinutes

Temporary Access Pass の有効期間（分）です。有効な値は 60 ～ 480 分（1 ～ 8 時間）です。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 240   |
| 種類    | Int32 |

#### OneTimeUseOnly

true に設定すると、このパスは 1 回だけ使用できます。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | True  |
| 種類    | ブール値  |

#### NotifyUser

有効にすると、新しく作成された TAP についてユーザーのプライマリ メール アドレスに通知メールを送信します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | False |
| 種類    | ブール値  |

#### EmailFrom

送信者のメール アドレスです。これは runbook のカスタマイズで構成する必要があります。

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

#### ServiceDeskDisplayName

ユーザー連絡先情報の Service Desk 表示名（省略可）。

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

#### ServiceDeskEmail

ユーザー連絡先情報の Service Desk メール アドレス（省略可）。

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

#### ServiceDeskPhone

ユーザー連絡先情報の Service Desk 電話番号（省略可）。

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

#### ServiceDeskPortalUrl

ユーザー連絡先情報の Service Desk ポータル URL。クリック可能なリンクとして表示されます（省略可）。

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

#### ServiceDeskTicketUrl

この要求に関連する Service Desk チケットへの直接リンク。クリック可能なリンクとして表示されます（任意）。既定では空のため、チケットリンクは追加されません。

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

[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/security/create-temporary-access-pass.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.
