# Just-in-time administration is used for the administration of systems and their resources

Just-in-time administration is used for the administration of systems and their resources (ISM-1649, Essential Eight Maturity Level Three).

Source: https://maester.dev/docs/tests/ASD.ISM-1649

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/jusso-dev" title="jusso-dev · Original author"><img src="https://github.com/jusso-dev.png" alt="jusso-dev" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/jusso-dev">jusso-dev</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/asd">ASD</a> · Entra ID · Privileged Identity Management · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId ASD.ISM-1649
```

## Overview

Just-in-time administration is used for the administration of systems and their resources (ISM-1649, Essential Eight Maturity Level Three).

A standing administrator role is a target around the clock: whoever holds the account holds the tenant. With Privileged Identity Management, administrators are eligible for a role and activate it for a few hours when they need it, with MFA, a justification and an audit trail.

ASD's assessment guide describes just-in-time administration as granting privileged users access "immediately before that access is required and for only as long as it is required", and the ASD Blueprint for Secure Cloud makes every Microsoft Entra role an eligible assignment, with permanent active assignments only for break glass accounts. This test runs the same check as [CIS.M365.5.3.1](https://maester.dev/docs/tests/CIS.M365.5.3.1): every active assignment of a user or group to a role that Microsoft Entra marks as privileged must have been made by an activation. A time-bound active assignment fails as well, because it is standing access for its whole duration. A service principal passes when its assignment has an end date. Permanent Global Administrator assignments are allowed only for the emergency access accounts named in the Maester configuration (`EmergencyAccessAccounts`), up to two. See [Emergency access accounts](https://maester.dev/docs/configuration/emergency-access-accounts).

#### Remediation action

1. In the [Microsoft Entra admin center](https://entra.microsoft.com), go to **ID Governance** > **[Privileged Identity Management](https://entra.microsoft.com/#view/Microsoft_Azure_PIMCommon/CommonMenuBlade/~/quickStart)** > **Microsoft Entra roles** > **Assignments**.
2. For each **Active** assignment listed below, choose **Remove**, then add the user or group again under **Eligible assignments**.
3. In **Settings** for each role, require multifactor authentication on activation, set a maximum activation duration and require a justification.
4. Keep your emergency access accounts permanently assigned, and list them in `maester-config.json` so Maester leaves them out.

#### Related links

* [Essential Eight maturity model](https://www.cyber.gov.au/business-government/asds-cyber-security-frameworks/essential-eight/essential-eight-maturity-model)
* [Essential Eight assessment process guide](https://www.cyber.gov.au/business-government/asds-cyber-security-frameworks/essential-eight/essential-eight-assessment-process-guide)
* [ASD Blueprint for Secure Cloud: Roles](https://blueprint.asd.gov.au/design/platform/identity/roles/)
* [Assign Microsoft Entra roles in Privileged Identity Management](https://learn.microsoft.com/entra/id-governance/privileged-identity-management/pim-how-to-add-role-to-user)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | ASD.ISM-1649 |
| Severity | High |
| Suite | ASD |
| Product | Entra ID |
| Feature | Privileged Identity Management |
| Area | Privileged access |
| Resource type | DirectoryRole |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1078.004 Cloud Accounts, T1098.003 Additional Cloud Roles |
| Supports benchmark | ASD Essential Eight maturity model (version 2026.09.4), requirement ISM-1649 |
| Benchmark level | ML3 |
| Essential Eight strategy | Restrict administrative privileges |
| Supports controls | essential-eight:ISM-1649, nist-800-53-r5:AC-2(7), nist-800-53-r5:AC-6(5), ism:ISM-1649 |
| PowerShell test | [Test-MtAsdJustInTimeAdministration](https://github.com/maester365/maester/blob/main/tests/asd/entra/Test.ASD.ISM-1649.ps1) |
| Services | Graph |
| Compatible licenses | AAD_PREMIUM_P2, Entra_Identity_Governance |

</details>

## Source

- Test: [`tests/asd/entra/Test.ASD.ISM-1649.ps1`](https://github.com/maester365/maester/blob/main/tests/asd/entra/Test.ASD.ISM-1649.ps1)
- Documentation: [`tests/asd/entra/Test.ASD.ISM-1649.md`](https://github.com/maester365/maester/blob/main/tests/asd/entra/Test.ASD.ISM-1649.md)
