> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/how-jobs-and-tasks-work.md). Agents can also search and read this documentation through its [MCP server](https://docs.keeper.io/~gitbook/mcp).

# ジョブとタスクの仕組み

<figure><img src="https://859776093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPL6k1aGsLiFiiJ3Y7zCl%2Fuploads%2Fgit-blob-c7bd5bababffc11c0a166da9f9800e0875b26047%2Fhow-jobs-and-tasks-work1.png?alt=media" alt=""><figcaption></figcaption></figure>

\_**ジョブ***と***タスク***は、Keeper EPMを支える自動化の仕組みです。ポリシーがMFA、正当な理由、管理者承認またはエンドユーザー承認を求めるとき、リクエストが承認されてアプリケーションが昇格した状態で起動されるとき、エージェントがインベントリを収集するときに、実際に処理を行うのが***ジョブ***です。本ページでは、***ジョブ***と***タスク**\_とは何か、どのように実行されるか、どのように管理するかを取り扱います。

***

## ジョブとは <a href="#what-a-job-is" id="what-a-job-is"></a>

\*\*ジョブは、エージェントがエンドポイント上で実行する、名前付きの繰り返し可能な自動化処理です。\*\*各エンドポイントでスクリプトを用意する必要はありません。エージェントは、Keeper管理コンソールからジョブの定義を受け取り、トリガーが発生したときに実行します。

#### ジョブは、以下の4つの方法で開始されます <a href="#jobs-are-initiated-in-one-of-four-ways" id="jobs-are-initiated-in-one-of-four-ways"></a>

<table><thead><tr><th width="162.199951171875">開始方法</th><th>内容</th></tr></thead><tbody><tr><td>イベント</td><td>ポリシーによる承認の要求、ファイルアクセスポリシーの変更など、エージェントが反応する出来事の発生</td></tr><tr><td>起動時</td><td>Keeper EPMエージェントサービスの起動時</td></tr><tr><td>スケジュール</td><td>一定の分数ごと、指定した時刻に1回、cronスケジュール、または選択した曜日と時刻</td></tr><tr><td>オンデマンド</td><td>ユーザーまたはツールが、エージェントのローカルAPIを通じてジョブをトリガー</td></tr></tbody></table>

ジョブには条件を設定することもできます。条件を満たさない場合、ジョブはスキップされるか、代替のジョブに処理を引き継ぎます。ジョブはWindows、macOS、Linuxのいずれかに限定でき、複数のジョブが待機している場合にどのジョブを先に実行するかを決める優先度も持ちます。

***

## タスクとは <a href="#what-a-task-is" id="what-a-task-is"></a>

**タスクは、ジョブ内の1つの手順**です。プログラムの実行、ウェブサービスの呼び出し、メッセージの発行などがあります。ジョブは、タスクを順番に実行します。各タスクでは、成功時と失敗時に次に行う動作を指定できるため、ジョブは問題から復旧したり、別の経路に進んだりできます。タスクは後続のタスクに結果を渡すこともでき、ジョブはデフォルト値付きのパラメータを受け取れます。

### タスクの実行場所 <a href="#where-a-task-runs" id="where-a-task-runs"></a>

各タスクは、以下の4つのコンテキストのいずれかで実行されます。

<table><thead><tr><th width="154.199951171875">コンテキスト</th><th>内容</th></tr></thead><tbody><tr><td>Service</td><td>ユーザーセッションなしで、Keeperサービスとして実行。デフォルト</td></tr><tr><td>User</td><td>サインインしているユーザーのセッションで、昇格なしで実行</td></tr><tr><td>UserDesktop</td><td>ユーザーのデスクトップで、昇格なしで実行。MFAや承認など、ユーザーの応答を待つプロンプトに使用</td></tr><tr><td>UserElevated</td><td>ユーザーのコンテキストで、昇格した状態で実行</td></tr></tbody></table>

***

## ジョブの役割 <a href="#what-jobs-do-for-you" id="what-jobs-do-for-you"></a>

* **ポリシーコントロール:** MFA、正当な理由、承認のプロンプトの表示、承認リクエストの送信、ユーザーの応答の適用
* **権限昇格:** アプリケーションを昇格した状態で起動、または承認者が承認したリクエストを開始
* **ファイルアクセス:** ファイルアクセスポリシーの適用、一時的なアクセスの付与と取り消し
* **リスクとインベントリ:** マシン、ユーザー、ファイルに関する情報の収集と、ポリシーで利用できるリスクスコアの算出
* **最小権限:** 恒常的な管理者権限の削除の確認と適用
* **メンテナンス:** キャッシュの消去、バージョン情報の記録、監査イベントの送信、ポリシー評価でのエラーの処理
* **通知:** エージェントからユーザーへのメッセージの表示

完全な一覧については、[デフォルトジョブ](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/jobs-reference/default-jobs.md)をご参照ください。

***

## ユーザーと承認者に表示される内容 <a href="#what-users-and-approvers-see" id="what-users-and-approvers-see"></a>

一部のジョブはウィンドウを開きます。これが、ユーザーと承認者が日常的に目にする画面です。

* **Keeper Privilege Manager:** エージェントのトレイアイコンとパネル。ユーザーはここでリクエストの状況を確認します。
* **承認:** ユーザーが承認のリクエストを送信するウィンドウ
* **正当な理由:** ユーザーに理由の記入を求めるウィンドウ
* **MFA:** ユーザーにMFAコードの入力を求めるウィンドウ

これらのウィンドウはユーザーのデスクトップセッションで動作するため、プロンプトに応答するために管理者権限は必要ありません。

***

## ジョブの管理方法 <a href="#how-you-manage-jobs" id="how-you-manage-jobs"></a>

ジョブを手作業で編集することはほとんどありません。ジョブは管理コンソールから管理し、新規または変更されたジョブ定義をエンドポイントに配信するジョブ更新ポリシーで変更します。詳しくは、[ジョブ更新](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/policies/policy-types/advanced-policy-types/update-jobs-policy-type.md)をご参照ください。チケット管理システムを呼び出すジョブなど、独自のジョブが必要な場合は、[カスタムジョブガイド](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide.md)をご参照ください。

## 関連ページ <a href="#related-pages" id="related-pages"></a>

* [ジョブリファレンス](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/jobs-reference.md)
* [デフォルトジョブ](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/jobs-reference/default-jobs.md)
* [プラグインと設定の仕組み](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/how-plugins-and-settings-work.md)
* [デプロイとリクエストライフサイクルの連携](https://docs.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/how-deployment-and-the-request-lifecycle-work-together.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.keeper.io/keeperpam/jp/endpoint-privilege-manager/getting-started/how-jobs-and-tasks-work.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.
