Tuesday, November 17, 2026

PIM for AI agents

 I am really excited to share that you can now secure AI agents with just in time access using Microsoft Entra Privileged Identity Management (PIM). Really proud to see this evolve from a Hackathon project to a customer offering. As AI agents increasingly perform sensitive operations, standing permissions create an expanding and often unnecessary attack surface. You can now convert these standing permissions into just-in-time access https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-resource-roles-assign-roles?pivots=portal#assign-a-role 

With PIM custom extensions, you can allow agents to request just in time access on demand but control what gates needs to be met like valid ticket number, valid source code commit, etc. to decide if the request needs to be auto approved or require human approval https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/privileged-identity-management-custom-extensions

We have also added support for App Roles so users and agents can get just-in-time access to any roles defined in any application https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/app-roles-activate

Another new capability that we added is PIM-only mode which can be used to prevent creation of any standing assignments https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-how-to-enable-pim-only-mode

We have also added support for intent-based activation, where the least-privileged role is picked for activation based on the task that is needed to be performed https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-resource-roles-activate-your-roles?pivots=entra-admin-center#activate-a-role-in-the-microsoft-entra-admin-center

Together, these capabilities shift the security of AI agents from “what permissions does this identity have?” to “what is this identity trying to accomplish right now, and what is the minimum just in time access required to safely accomplish it?”.