Repository navigation
Agent ID: service principals can't be sponsors of an agentIdentityBlueprintPrincipal - #10105
Open
Julien Ly (julien-ly) wants to merge 1 commit into
Conversation
The service rejects service principals as sponsors of an agent identity blueprint principal (400 Request_BadRequest), as the agentIdentity and agentIdentityBlueprint pages already state for their own sponsors.
Contributor
|
Learn Build status updates of commit a348fe9: ✅ Validation status: passed
For more details, please refer to the build report. |
1 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Add sponsors page and the resource page for agentIdentityBlueprintPrincipal say that sponsors can be service principals. The service rejects them, and the agentIdentity and agentIdentityBlueprint pages already say that sponsors may not include service principals. This PR aligns the agentIdentityBlueprintPrincipal pages (v1.0 and beta) with that wording and with the sponsors the API accepts.
Tested on November 22, 2026 in a test tenant:
POST /servicePrincipals/{id}/microsoft.graph.agentIdentityBlueprintPrincipal/sponsors/$refwith a service principal returns400 Request_BadRequest: "The reference target 'ServicePrincipal_…' of type 'ServicePrincipal' is invalid for the 'sponsors' reference." Same result on v1.0 and beta with a delegated token. Darius Frank (@Dfrank77) got the same 400 with an app-only token that holdsAgentIdentityBlueprintPrincipal.ReadWrite.All(feat(entra): add MT.1286 - user sponsors of Agent ID objects should have a manager maester365/maester#2838).Not changed here, for the owners of the permissions tables: with a delegated work-account token,
GET .../microsoft.graph.agentIdentity/sponsors,GET .../microsoft.graph.agentIdentityBlueprintPrincipal/sponsorsand thePOST .../microsoft.graph.agentIdentityBlueprintPrincipal/sponsors/$refabove all succeed on v1.0 and beta, while the tables list delegated access as "Not supported" or "Not available". The token came from Microsoft Graph Command Line Tools and held, among others,AgentIdentity.Read.All,AgentIdentityBlueprintPrincipal.Read.All,Application.ReadWrite.AllandDirectory.AccessAsUser.All, so I can't tell which permission grants access.