Inheritable Permissions in Microsoft Entra Agent ID: Three Required steps, and a 200 OK that…
From the publisher’s feed, collected in the ZeroLabs newsroom.
Inheritable Permissions in Microsoft Entra Agent ID: Three Required steps, and a 200 OK that Authorises NothingSecond in a series on Entra Agent ID. The first part covered how an agent identity obtains an access token — the two-leg exchange, the fmi_path parameter, and where the client assertion comes from. This part covers what has to be configured before that token carries any authorisation at all, and what happens when one step is missing: nothing fails, and the token that comes back carries no permissions.The object model, brieflyAn agent identity does not hold permissions of its own. It inherits them from its agent identity blueprint — an application object of type microsoft.graph.agentIdentityBlueprint. The blueprint holds the credential the workload authenticates with, and it holds the permissions that flow down to the agent identities beneath it.That inheritance is not automatic. It is the third of three separate configuration steps, and it is the one that is easiest to omit, because omitting it produces no error.The three stepsAssume a blueprint that needs two Microsoft Graph application roles and one custom application role defined on an internal API. Three things have to be true before an agent identity beneath that blueprint receives either in a token.1. Declaration — requiredResourceAccess on the blueprintPATCH /beta/applications/{blueprintObjectId}/microsoft.graph.agentIdentityBlueprintContent-Type: application/json{ "requiredResourceAccess": [ { "resourceAppId": "00000003-0000-0000-c000-000000000000", "resourceAccess": [ { "id": "", "type": "Role" }, { "id": "", "type": "Role" } ] }, { "resourceAppId": "", "resourceAccess": [ { "id": "", "type": "Role" } ] } ]}This is a declaration of intent. It populates the consent-review experience and grants nothing on its own.Two operational notes. First, this property is replaced, not merged — the body must restate every resource entry the blueprint should retain, or the omitted ones are silently removed. Second, the permissions required to make this call are narrower than one might expect: Application.ReadWrite.All alone is not sufficient for a blueprint object. The operation requires an Agent ID role such as AgentIdentityBlueprint.ReadWrite.All, or ownership of the blueprint by the calling principal. My first attempt returned Authorization_RequestDenied, and the cause was the permission rather than the route.2. Grant — appRoleAssignment on the blueprint principalPOST /beta/servicePrincipals/{blueprintPrincipalObjectId}/appRoleAssignmentsContent-Type: application/json{ "principalId": "{blueprintPrincipalObjectId}", "resourceId": "{resourceServicePrincipalObjectId}", "appRoleId": "{roleId}"}One call per role. This is the equivalent of “grant admin consent” in the portal, and it is what actually attaches the role to the blueprint principal. Note that resourceId is the service principal object ID of the resource application, not its application object ID — a distinction that matters when the resource is an application registered in the same tenant.After this step, the blueprint holds the roles. The agent identities beneath it do not.3. Inheritance — inheritablePermissions on the blueprintPOST /beta/applications/microsoft.graph.agentIdentityBlueprint/{blueprintObjectId}/inheritablePermissionsContent-Type: application/json{ "resourceAppId": "", "inheritableRoles": { "@odata.type": "#microsoft.graph.allAllowedRoles", "kind": "allAllowed" }}One entry per resourceAppId. Microsoft Graph and a custom API are separate entries, and adding an entry for a second resource does not disturb the first.The entry is keyed on resourceAppId, which has a consequence the first time you change one. A second POST for the same resource is rejected:An inheritable permission for resource app ID … already exists.Updating an existing entry is a PATCH addressed by the resource’s app ID, not by a generated entry ID:PATCH /beta/applications/microsoft.graph.agentIdentityBlueprint/{blueprintObjectId}/inheritablePermissions/{resourceAppId}Two properties are available on each entry. inheritableRoles governs application permissions and determines what appears in the token's roles claim. inheritableScopes governs delegated permissions and lands in scp. For an autonomous agent operating app-only, only the first has any effect; configuring scopes alone puts no application roles in the token.The kind value used above is allAllowed, which makes any role the blueprint holds — now or in future — inheritable. It is also the only kind for roles I was able to use. An enumerated form is referenced by the API surface, but it is absent from the published metadata and I could not construct a payload it would accept; see the observations below.A route asymmetry worth notingThe type cast appears on opposite sides of the key in steps 1 and 3:PATCH /applications/{id}/microsoft.graph.agentIdentityBlueprint ← cast after the idPOST /applications/microsoft.graph.agentIdentityBlueprint/{id}/inheritablePermissions ← cast before the keyBoth are correct as documented. Constructing one from the other by analogy does not work.The experimentThe question under test was narrow: what does the token endpoint return when steps 1 and 2 are complete and step 3 is absent?Setup. One agent identity blueprint. One agent identity beneath it. One custom API application in the same tenant with a single application-only app role. The blueprint’s declaration (requiredResourceAccess) included that role, and the grant (appRoleAssignment) had been created against the custom API's service principal. No inheritablePermissions entry existed for that resource.Method. The standard two-leg exchange. The workload obtains a token from its hosting platform and presents it as a client assertion to request an exchange token, naming the agent identity in fmi_path. The exchange token is then presented as the agent identity's own client assertion to request a resource token for the custom API's audience. Every call was made through Graph and the token endpoint directly, so that no SDK behaviour sat between the request and the result.Result.HTTP/1.1 200 OKThe token was issued. Its aud was correct for the custom API, appid correctly identified the agent identity rather than the blueprint, iss and exp were well formed, and the signature validated.The roles claim was present but empty — "roles": [].No error was returned in the response body. The agent’s entry in the Entra sign-in logs records the exchange as a successful authentication, because that is what it was. Nothing in the portal indicated an incomplete configuration.It is worth being precise about what this result is, because it is easy to describe as a failure, and it is not one. Entra authenticated the blueprint correctly. It authenticated the agent identity correctly. It computed the agent’s permission set for that resource, found it empty, and issued a token saying so. Each of those is the correct outcome for the configuration it was given. Authorisation — the decision to allow or refuse an operation — belongs to the resource server, and in this experiment it never happened. The roles claim is evidence for that later decision, not the decision itself.What the result shows is narrower and, I think, more useful: an incomplete configuration is not an error condition. It is a valid state, and it produces a valid token that conveys no permissions. No component in the chain is in a position to know that this was not what the operator intended.Control. The inheritablePermissions entry was then created for that resourceAppId, a fresh exchange token was obtained, and the resource token was requested again with an otherwise identical request. The roles claim contained the expected role.Observations I could not find documentedAn incomplete permission chain is indistinguishable from a complete one at the HTTP layer. The token endpoint returns 200 in both cases. The difference is visible only in a claim inside the issued token. Any provisioning process that treats a sequence of 2xx responses as success will report a working configuration that grants nothing.The token carries an empty roles array, not a missing one. The claim is present as "roles": []. A resource server that reads roles and treats an empty collection as "no permissions, deny" behaves correctly on this token. The failure to audit for is the resource server that only checks whether a particular role is present and does nothing special about the collection being empty — it will refuse this caller for the right reason, but a resource that skips the check entirely when the array is empty will not. In either case the distinction that matters is that the token is well-formed and validly signed; the emptiness is visible only to code that inspects the claim, never at the HTTP layer.Configuration review cannot detect this. Reading the blueprint back — including with $expand=inheritablePermissions — tells you what is configured, and an operator comparing that against an intended state will find the discrepancy only if they know to look for a third property that grants nothing visible when present and errors nothing when absent. The only reliable detection is to mint a token and assert on its claims.The enumerated form for roles is referenced but not published, and I could not construct it. The kind discriminator implies an alternative to allAllowed that would list specific roles. I tried every plausible member name for that list:roleIds, roles, appRoleIds, roleValues, values, ids→ 400 Expected property 'X' is not present on resource of type 'EnumeratedRoles'The error echoes back whatever property name is sent, so it identifies nothing. The published beta $metadata does not define enumeratedRoles, inheritableRoles or noRoles. It does define enumeratedScopes, whose member is scopes — so the obvious inference, that the roles half mirrors the scopes half, does not hold. As far as I could establish, per-role inheritance is not currently configurable: the only working choice is between inheriting every role the blueprint holds on a given resource, and inheriting nothing from that resource.I did not establish whether an exchange token carries the inheritance state at the time it was issued. When re-testing after adding the inheritance entry, I obtained a fresh exchange token before requesting the resource token, so the two variables moved together. Whether an exchange token minted before the change, and exchanged after it, yields the old or new roles set is a distinct question I did not isolate. Given that resource tokens are valid for approximately an hour and are not re-evaluated after issuance, the practical guidance is the same either way: after changing inheritance, do not test with a token obtained before the change.Practical consequencesProvisioning should verify rather than assume. A control-plane process that creates a blueprint, grants roles and configures inheritance should conclude by requesting a token for a newly created agent identity and asserting that the expected roles are present. Six successful Graph calls are not evidence that the seventh thing — the token — will be correct.Recertification is a token operation, not a configuration operation. A periodic review that compares configured state against intended state will pass a blueprint whose agents receive nothing. A review that mints a token and inspects roles will not.Under allAllowed, inheritance is a standing delegation, and nothing narrower is available. A role granted to the blueprint later is inherited by the agents already beneath it on their next token, with no per-agent action. Adding a role for one agent's benefit therefore gives it to every agent on that blueprint. Because the enumerated form could not be constructed, the finest control Entra offers is per resource — whether a resource has an inheritance entry at all — not per role. Where a blueprint serves more than one agent, that makes the verification above do double duty: assert that the token's roles equal the intended set, not merely that they contain it, because an extra role is the only sign that the blueprint has been widened.Deleting the grant and deleting the inheritance are different operations with different blast radii. Removing the appRoleAssignment removes the role from the blueprint. Removing the inheritablePermissions entry leaves the blueprint holding the role while stopping it reaching any agent. Both take effect on newly issued tokens only; tokens already issued remain valid until they expire.Method notesAll Graph calls were made against the Microsoft Graph beta endpoint, and tokens were requested from the v2.0 token endpoint, in a non-production tenant, using a service principal holding Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All, AgentIdentityBlueprint.ReadWrite.All, AgentIdentityBlueprint.Create and AgentIdentity.Create.All. I did not test whether the same routes are accepted on v1.0. Tokens were decoded locally rather than through an online decoder.Entra Agent ID reached general availability in April 2026. The service is generally available; the Graph surface used here to configure it is the beta endpoint, which Microsoft does not support for production use. Behaviour on that surface may change without notice.Scope of what was tested: a single tenant; application permissions only, with no delegated permissions in play; a user-assigned managed identity as the federating credential; a single agent identity, whose sign-in log entries were the ones inspected; and a custom API application registered in the same tenant as the resource. I have not tested the same sequence with a certificate credential, or against a resource in another tenant. A companion piece runs the same exchange from a GitHub Actions workflow, on a separate blueprint.I also did not compare against a standard application registration requesting the same audience with no role assigned. Whether Entra issues a token there too, or refuses, would show how much of the result above is specific to Agent ID and how much is ordinary client-credentials behaviour. The claim this article makes does not depend on the answer: for a standard application, granting the role is the last step; for an agent identity, there is a third.Observed in a single tenant, September 2026. Verify current behaviour against your own.The views and findings in this article are my own and do not represent those of my employer. All testing was done in a non-production environment using generally available Microsoft services. This article is not affiliated with or endorsed by Microsoft.Inheritable Permissions in Microsoft Entra Agent ID: Three Required steps, and a 200 OK that… was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.