> 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/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).

# How Jobs & Tasks Work

<figure><img src="https://762006384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXOXEifAmpyvNVL1to%2Fuploads%2FbGW6eF5MBpCInytsKXBV%2Fimage.png?alt=media&amp;token=f1f315bd-acfa-4d86-97c5-e8cae21c5662" alt=""><figcaption></figcaption></figure>

***Jobs*** and ***Tasks*** are the automation behind Keeper EPM. When a policy asks for MFA, a Justification, or an Admin or End-User Approval, when a request is approved and an application is started in an elevated state, or when the agent collects inventory, it is a ***Job*** that does the work. This page explains what ***Jobs*** and ***Tasks*** are, how they run, and how you can manage them.

***

## What a Job Is

**A job is a named, repeatable piece of automation that the agent runs on the endpoint.** You don't script anything on each endpoint. The agent receives job definitions from the Keeper Admin Console and runs them when their trigger fires.

#### Jobs are initiated in one of four ways:

<table><thead><tr><th width="162.199951171875">Initialization Method</th><th>What it means</th></tr></thead><tbody><tr><td>An Event</td><td>Something happens that the agent reacts to, such as a policy asking for approval or a change to your file access policies.</td></tr><tr><td>At Startup</td><td>When the Keeper EPM agent service starts.</td></tr><tr><td>A Schedule</td><td>Every set number of minutes, once at a set time, on a cron schedule, or on chosen days and times.</td></tr><tr><td>On Demand</td><td>A person or tool triggers the job through the agent's local API.</td></tr></tbody></table>

A job can also have conditions. If the conditions aren't met, the job is skipped, or it hands off to an alternate job. A job can be limited to Windows, macOS, or Linux, and it has a priority that decides which job goes first when several are waiting.

***

## What a Task Is

**A task is one step inside a job**, such as running a program, calling a web service, or publishing a message. A job runs its tasks in order. Each task can say what happens next on success and on failure, so a job can recover from a problem or take a different path. Tasks can also pass results to later tasks, and a job can take parameters with default values.

### Where a Task Runs

Each task runs in one of four contexts.

<table><thead><tr><th width="154.199951171875">Context</th><th>What it means</th></tr></thead><tbody><tr><td>Service</td><td>Runs as the Keeper service, with no user session. This is the default.</td></tr><tr><td>User</td><td>Runs in the signed-in user's session, without elevation.</td></tr><tr><td>UserDesktop</td><td>Runs on the user's desktop, without elevation. Used for prompts that wait for the user, such as MFA and approval.</td></tr><tr><td>UserElevated</td><td>Runs elevated in the user's context.</td></tr></tbody></table>

***

## What Jobs Do for You

* **Policy Controls:** Show the MFA, justification, and approval prompts, send approval requests, and apply the user's answer.
* **Privilege Elevation:** Start an application elevated, or start a request that an approver has approved.
* File access: Apply file access policies, and grant or revoke temporary access.
* **Risk and Inventory:** Gather information about machines, users, and files, and compute risk scores that policies can use.
* **Least Privilege:** Check and enforce the removal of standing administrator rights.
* **Maintenance:** Clear caches, log version information, send audit events, and handle errors in policy evaluation.
* **Notifications:** Show messages to the user from the agent.

For the complete list, see [Default Jobs](https://docs.keeper.io/keeperpam/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/jobs-reference/default-jobs.md).

***

## What Users and Approvers See

Some jobs open a window, which is what users and approvers see day to day.

* **Keeper Privilege Manager:** The agent's tray icon and panel, where users follow their requests.
* **Approval:** The window where a user submits a request for approval.
* **Justification:** The window that asks the user for a written reason.
* **MFA:** The window that asks the user for an MFA code.

These windows run in the user's desktop session, so the user doesn't need administrator rights to answer a prompt.

***

## How You Manage Jobs

You rarely edit a job by hand. Manage jobs from the Admin Console, and change them with an Update Jobs policy, which pushes new or changed job definitions to your endpoints. See [Update Jobs](https://docs.keeper.io/keeperpam/endpoint-privilege-manager/policies/policy-types/advanced-policy-types/update-jobs-policy-type.md). If you need a job of your own, such as one that calls your ticketing system, see the [Custom Job Guide](https://docs.keeper.io/keeperpam/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide.md).

## Related Pages

* [Jobs Reference](https://docs.keeper.io/keeperpam/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/jobs-reference.md)
* [Default Jobs](https://docs.keeper.io/keeperpam/endpoint-privilege-manager/custom-tooling/jobs-and-plugins/custom-job-guide/jobs-reference/default-jobs.md)
* [How Plugins & Settings Work](https://docs.keeper.io/keeperpam/endpoint-privilege-manager/getting-started/how-plugins-and-settings-work.md)
* [How Deployment & the Request Lifecycle Work Together](https://docs.keeper.io/keeperpam/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/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.
