Skip to content

Identity Lifecycle and Privileged Access

github-actions[bot] edited this page Nov 29, 2026 · 1 revision

Last reviewed: 2026-11-28 (provider documentation only; no tenant, account or organization was queried)

Caution

Authorized use only. Account disablement, role removal and emergency-access drills affect production access. Run them only in environments you administer, with change approval, and tell your security monitoring team before any drill. See LEGAL.md.

Prerequisites: Cloud identity index ยท Phishing-resistant authentication

๐ŸŽฏ Purpose

Describe how to create, change and remove human identities and privileged access across Microsoft Entra ID, AWS and Google Cloud / Workspace, and how to design and regularly test break-glass (emergency access) accounts.

โš™๏ธ Function

Gives a provider-neutral joiner/mover/leaver model, then the documented provider mechanisms for separate admin accounts, just-in-time (JIT) elevation and emergency access, each with the audit events that prove the control is working.

๐Ÿ† Goal

No standing privilege that is not needed, no orphaned accounts after people leave, and emergency access that works on the day it is needed and raises an alert every time it is used.

๐Ÿ“‹ When To Use

  • Building or auditing onboarding, role-change and offboarding procedures
  • Moving administrators from permanent roles to eligible or time-bound access
  • Creating or reviewing break-glass accounts and their test schedule

๐Ÿ”„ Joiner, Mover & Leaver

Drive identity changes from one authoritative source (HR system or IdP), not from individual cloud consoles. For each event, record who approved it and keep the provider audit record.

Event Minimum actions Evidence to keep
Joiner Create the user in the authoritative IdP; add to role-based groups; require phishing-resistant MFA registration before any privileged access Group membership, MFA registration record
Mover Remove old group and role memberships before granting new ones; re-review any eligible (PIM/PAM) assignments Before/after membership; audit events for removals
Leaver Disable the account, revoke sessions, remove group, role and app assignments, then rotate any shared secrets the person knew Disable and revoke records; assignment removals

Leaver Steps Per Provider

  • Entra ID: Microsoft's revoke access procedure disables the account (Update-MgUser -UserId $User.Id -AccountEnabled:$false), revokes sessions (Revoke-MgUserSignInSession -UserId $User.Id) and disables the user's devices (Update-MgDevice -AccountEnabled:$false). For hybrid users, run Disable-ADAccount on-premises first so synchronization does not re-enable the account. Disabling an administrator account needs the Privileged Authentication Administrator role.
  • AWS IAM Identity Center: the revoke user permissions procedure is: get the user ID, add it to a pre-deployed deny SCP, remove permission-set and account assignments, disable the user in the external IdP, delete the active session in the console, then disable the user. Disabling first prevents ending the session from the console. Details are in token theft & session revocation.
  • AWS IAM users: deactivate access keys (aws iam update-access-key --access-key-id <key-id> --status Inactive --user-name <user>) and remove the console password. A user can hold at most two access keys, so check both.
  • Google Workspace: sign the user out of all web and device sessions with the Directory API users.signOut and remove OAuth grants with tokens.delete; suspend the user. Google's super admin best practices note that suspension policy should match between Cloud Identity and any third-party IdP.

๐Ÿ‘ค Separate Admin Accounts

Keep day-to-day work (mail, browsing, chat) on one account and administration on another. The admin account should use phishing-resistant MFA, should not be mail-enabled where avoidable, and should be used from a privileged access workstation where you have one.

  • Entra ID: assign directory roles to dedicated admin accounts and prefer eligible PIM assignments. Microsoft recommends device-bound passkeys for administrators.
  • AWS: use IAM Identity Center permission sets for human administrators rather than IAM users with long-lived keys. Do not use the root user for daily work and do not create root access keys (root user best practices).
  • Google Cloud: Google recommends a separate super admin account with its own login, not used day to day, and granting the Organization Administrator role to a group that does not include the super admin (super admin best practices).

โฑ๏ธ Just-In-Time Elevation

Provider Mechanism Audit evidence
Entra ID Privileged Identity Management eligible role assignments, activated on demand with optional approval AuditLogs activities such as "Add member to role requested (PIM activation)", "Add member to role completed (PIM activation)", "Add member to role request approved (PIM activation)", "Remove member from role (PIM activation expired)" (audit activity reference)
AWS Short-lived role sessions through IAM Identity Center (interactive session default 8 hours, configurable from 15 minutes to 90 days; changes apply only to new sessions, per interactive sessions) CloudTrail sso.amazonaws.com events such as CreateAccountAssignment and portal GetRoleCredentials (Identity Center CloudTrail)
Google Cloud Privileged Access Manager entitlements at organization, folder or project level; roles are revoked at the end of the grant duration; approval is optional PAM events are written to Cloud Audit Logs; grant records are deleted from PAM 30 days after they end, but their logs stay in _Required

Watch for direct, permanent role additions that bypass JIT. The detection azure_auditlogs_privileged_role_member_added.yml matches "Add member to role" and "Add eligible member to role", and gcp_audit_resource_manager_set_iam_policy.yml matches project and folder setIamPolicy calls.

๐Ÿšจ Break-Glass Design

Emergency access exists for the day the normal path fails: the IdP is down, a Conditional Access or federation change locks everyone out, or every admin is eligible-only and no approver is available.

Microsoft Entra ID

From Microsoft's emergency access accounts guidance:

  • Two or more cloud-only accounts on the *.onmicrosoft.com domain, not federated or synced.
  • Passwordless authentication with a passkey (FIDO2), recommended, or certificate-based authentication, using a method different from your normal administrators.
  • Global Administrator assigned as permanent active, not eligible, in PIM.
  • Excluded from Conditional Access policies that block or restrict sign-in, through a dedicated group. Report-only policies do not need the exclusion.
  • Credentials and devices must not expire or be removed by automated cleanup. Store keys in fireproof safes in separate locations.
  • Alert on every sign-in. Microsoft's example Azure Monitor alert uses a SigninLogs query filtered on the accounts' UserId, threshold value 0, severity 0 (Critical).

AWS

  • Root user: AWS recommends removing root credentials from member accounts through centralized root access and using sts:AssumeRoot for privileged root tasks; root MFA is required; use multi-person control over the root password and MFA device, a group email address, and split recovery email and phone between groups (root user best practices).
  • Emergency account: Well-Architected FND05-BP02 recommends a dedicated, dormant emergency access account where any activity outside a declared emergency triggers investigation. It plans for three failure modes: the IdP is unavailable (pre-created IAM users with MFA, or the emergency account root user in a vault); the IdP configuration was changed or its certificate expired; and an IAM Identity Center disruption (direct SAML federation to IAM roles through empty emergency groups). Protect the cross-account roles with SCPs, centralize CloudTrail, alert with EventBridge and rotate credentials after use. AWS links awslabs/aws-break-glass-role as example tooling.
  • Identity Center outage: emergency console access works when Identity Center is unavailable but the IAM data plane and your IdP are up. It must be deployed before the outage.

Google Cloud / Workspace

From super admin best practices: a separate super admin account, 2-Step Verification enforced with a security key (keep the initial key in a safe place), a shorter sign-in session length (on Google Workspace enterprise or business or Cloud Identity premium accounts), self-recovery left disabled, and alerts on allow-policy changes (SetIamPolicy).

๐Ÿงช Periodic Break-Glass Testing

An untested break-glass account is an assumption. Microsoft's guidance gives a concrete schedule that is a reasonable baseline for every provider:

  • Validate the accounts at least every 90 days, after IT staff changes (termination or role change) and when Entra subscriptions change.
  • Test regularly (Microsoft's example is every quarter) that the accounts can sign in under your current Conditional Access configuration.
  • In each drill: tell security monitoring first; review the list of people authorized to use the credentials; confirm the documented procedure is current and staff are trained; sign in and perform an administrative task; confirm no MFA or self-service password reset method is registered to one person's device; check any MFA device has two independent network paths; change safe combinations when someone with access leaves.

Use the same drill structure for AWS and Google Cloud:

  1. Announce the drill window to the SOC and record a ticket number.
  2. Retrieve the credential from the vault or safe under two-person control.
  3. Sign in and perform one harmless administrative read.
  4. Confirm the alert fired: for Entra, the sign-in alert (see the detection azure_signinlogs_emergency_access_account_sign_in.yml); for AWS root, a ConsoleLogin event with userIdentity.type Root (see aws_cloudtrail_root_console_login.yml); for Google Cloud, the alert on super admin sign-in or SetIamPolicy you configured.
  5. Return the credential, rotate it if your policy requires, and close the ticket with the alert ID as evidence.

Warning

If the alert did not fire, treat the drill as failed even though sign-in worked. Check log routing and retention first; see identity log sources.

See also


Related Files


โฌ…๏ธ Cloud Identity index | Master Index | ๐ŸŽฏ Role Navigation | Legal Notice


๐Ÿ“„ Source: Cloud/Identity/identity-lifecycle-and-privileged-access.md | โœ๏ธ Suggest an edit | โฌ…๏ธ Back to Cloud

Clone this wiki locally