For the complete documentation index, see llms.txt. This page is also available as Markdown.

IAM management

Enable Just‑in‑Time access to Azure resources by installing IAM management.

Install IAM management to enable Just‑in‑Time (JIT) access to Azure resources through P0.

Permissions

Microsoft Graph API permission

During setup, P0 grants the User.Read.All Microsoft Graph API permission to the Azure app registration created in Azure app registration. P0 uses this permission to look up the requesting user's identity in your Entra ID directory when normalizing an access request.

Permission
Type
Purpose

User.Read.All

Application

Read user profiles in your Entra ID directory

This is a read-only permission. P0 cannot modify user profiles.

A separate Entra ID directory integration is not required for IAM management. The User.Read.All permission on the app registration is sufficient for P0 to resolve user identities when processing access requests.

Setup steps

  1. In the Azure integration on p0.app, select IAM Management.

  1. Run the Shell or Terraform steps shown. The Shell steps include:

    • Microsoft Graph API permission: Add User.Read.All to the P0 app registration.

    • Admin consent: Grant admin consent for User.Read.All via the Microsoft Graph API. Run this step with an account that can consent on the tenant's behalf.

    • Subscription targeting: Set the Azure CLI to the target subscription.

    • Custom role creation: Create the P0 management role with the required permissions.

    • Role assignment: Assign the custom role to the P0 service principal.

After these commands finish, JIT access through P0 is set up for the given subscription.

Manage with the P0 Terraform provider

Instead of running the generated Shell steps, you can install IAM management as code with the P0 Terraform provider. This is the recommended path for teams that manage their P0 configuration declaratively.

Stage the installation with p0_azure_iam_write_staged to compute the custom role spec P0 needs to manage role assignments in the subscription, create that role and assign it to P0's service principal, then complete the installation with p0_azure_iam_write. Both resources build on the p0_azure and p0_azure_app resources you set up during Azure app registration.

For the full argument reference and a worked example, see the p0_azure_iam_write resource documentation.

Next step

Last updated