> For the complete documentation index, see [llms.txt](https://docs.cipp.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cipp.app/user-documentation/identity/administration/jit-admin/templates/add.md).

# Add JIT Admin Template

This page creates a JIT Admin template, which stores the settings for a just-in-time admin grant so the same elevation can be requested repeatedly without rebuilding it. Templates are selected on the [Add JIT Admin](https://docs.cipp.app/user-documentation/identity/administration/jit-admin/add.md) page, and everything a template fills in can still be changed before the grant is submitted.

{% hint style="info" %}
The template is created for the tenant selected in the top menu; there is no tenant field on the form. Select All Tenants to create a template available everywhere. Changing the tenant in the top menu while the form is open clears the default user, groups, domain and Conditional Access policies, since they belong to the previous tenant.
{% endhint %}

## Template Information

| Field              | Description                                                                                                                                                    |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Template Name      | The name the template is listed under. Required.                                                                                                               |
| Default for Tenant | Applies this template automatically when the JIT admin form is opened for this tenant. A tenant-specific default takes precedence over an All Tenants default. |

## Default JIT Admin Settings

**Admin Roles** and **Group Membership** are switches, and each reveals its own selector. At least one has to be turned on, and the form says so until one is.

| Field                        | Description                                                                                                                                                                                                                                                                                    |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Apply JIT Role Template      | Picks one or more [JIT Role Templates](https://docs.cipp.app/user-documentation/identity/administration/jit-admin/role-templates.md) and adds their roles into Default Roles below. Selections are additive to whatever Default Roles already holds, and everything stays editable afterwards. |
| Default Roles                | The Entra ID directory roles the template assigns. If your CIPP role has a [JIT Role Templates](https://docs.cipp.app/user-documentation/identity/administration/jit-admin/role-templates.md) assigned, only the roles it allows are offered here.                                             |
| Default Groups               | The groups the account is added to. Not available on an All Tenants template, since group identifiers do not carry between tenants.                                                                                                                                                            |
| Default Duration             | How long the elevation lasts, which sets the end date on the JIT admin form. Optional.                                                                                                                                                                                                         |
| Default Expiration Action    | What happens to the account when the elevation ends. Required.                                                                                                                                                                                                                                 |
| Default Notification Actions | Which channels are notified when the grant is created: Webhook, Email, PSA or Push (a notification to the creator's own registered devices). Several can be selected.                                                                                                                          |
| Generate TAP by Default      | Issues a Temporary Access Pass with the grant.                                                                                                                                                                                                                                                 |
| Reason Template              | Reason text the template pre-fills, which the requester can adjust.                                                                                                                                                                                                                            |

The duration list offers 1 hour, 4 hours, 8 hours, 1 day, 3 days, 7 days, 14 days and 30 days. A value of your own can be typed instead, in [ISO 8601](https://iso8601.com/) duration format, so `PT2H30M` gives two and a half hours and `P1D` gives a day.

The expiration action offers **Delete User** and **Disable User** whatever the switches are set to. It also offers **Remove Roles**, **Remove Groups** or **Remove Roles and Groups**, matching whichever switches are on, so the account survives and only the elevation is taken away. Changing the switches after choosing clears the selection, since the option may no longer apply.

## User Creation Settings

**Default User Action** decides whether the template creates a new account or elevates an existing one, and which fields follow.

| Field                                 | Description                                                                                                                              |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Default First Name, Default Last Name | The new account's name. Shown for a new user, and optional.                                                                              |
| Default Username                      | The part before the @ symbol. Shown for a new user, and optional.                                                                        |
| Default Domain                        | The domain the account is created under. Shown for a new user, and not available on an All Tenants template.                             |
| Default Usage Location                | The country the account is licensed in. Shown for a new user, and optional.                                                              |
| Default User                          | The account the elevation is granted to. Shown when the template targets an existing user, and not available on an All Tenants template. |

When the template targets an existing user, it can also pre-set the Vacation Mode section of the JIT Admin form, which excludes the user from the chosen Conditional Access policies, location-based audit log alerts, or both, for the length of the grant plus a one-hour buffer. None of these are available on an All Tenants template. See [Add JIT Admin](https://docs.cipp.app/user-documentation/identity/administration/jit-admin/add.md) for what each exclusion does.

| Field                                        | Description                                                                                                                                    |
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Enable Vacation Mode by Default              | Turns the Conditional Access exclusion on by default.                                                                                          |
| Conditional Access Policies in *tenant*      | The Conditional Access policies selected by default. Shown once Vacation Mode is on. Several can be selected, read from the template's tenant. |
| Exclude from location-based audit log alerts | Turns the audit alert exclusion on by default, independently of Vacation Mode.                                                                 |

Once Vacation Mode is on, the form warns until at least one policy is selected.

{% hint style="info" %}
Default First Name, Default Last Name, Default Username and Reason Template accept variables for whoever applies the template: `%cipptechnician%` is the part of the signed-in technician's account name before the @ symbol, and `%cipptechnicianupn%` is the whole account name. They are filled in on the JIT Admin page when the template is applied, so a single template such as `jit-%cipptechnician%` names every technician's account after them and keeps the audit trail readable. Typing `%` in any of these fields offers the variables that apply there, and Default Username only offers `%cipptechnician%`, since the domain is added to that field separately. Anything else between percent signs is left as typed.
{% endhint %}

{% hint style="warning" %}
An All Tenants template can only create a new user. The Existing User option is greyed out, because a specific account exists in one tenant and means nothing in the others. Domain and group selection are withdrawn for the same reason, so an All Tenants template covers the roles, timing and expiry behaviour while the tenant-specific details are supplied when the grant is made.
{% endhint %}

***

## Feature Requests / Ideas

We value your feedback and ideas. Please raise any [feature requests](https://github.com/CyberDrain/CIPP/issues/new?template=feature.yml) on GitHub.


---

# 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.cipp.app/user-documentation/identity/administration/jit-admin/templates/add.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.
