Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph.identityGovernance
Attest an agentIdentity to confirm it still meets the requirements of its governing lifecyclePolicy. Attestation updates the identity's lifecycle state and can clear attestation-related compliance issues.
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
| Permission type | Least privileged permissions | Higher privileged permissions |
|---|---|---|
| Delegated (work or school account) | AgentIdentity.ReadWrite.All | Not available. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | AgentIdentity.ReadWrite.All | Not available. |
Important
For delegated access, the AgentIdentity.ReadWrite.All scope alone is insufficient. The signed-in user must also be assigned a supported Microsoft Entra role, be a direct owner of the agent, or be a direct sponsor of the agent. Agent Identity Administrator is the least privileged role supported for the administrator path. Ownership and sponsorship are separate authorization paths and don't require that role.
For application access, the AgentIdentity.ReadWrite.All application permission grants access without an additional ownership, sponsorship, or admin-role check. These rules apply to agent attestation through either the service principal route or the agent identity cast route.
HTTP request
POST /servicePrincipals/{servicePrincipalsId}/microsoft.graph.agentIdentity/microsoft.graph.identityGovernance.attest
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
Don't supply a request body for this method.
Response
If successful, this action returns a 204 No Content response code.
Examples
Request
The following example shows a request.
POST https://graph.microsoft.com/v1.0/servicePrincipals/55bc54bb-f5ef-431b-9e8f-6ee6320191fe/microsoft.graph.agentIdentity/microsoft.graph.identityGovernance.attest
Response
The following example shows the response.
HTTP/1.1 204 No Content