| title | Create inheritablePermission |
|---|---|
| description | Create a new inheritablePermission object. |
| author | zallison22 |
| ms.date | 11/13/2025 |
| ms.localizationpriority | medium |
| ms.subservice | entra-agent-id |
| doc_type | apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Create a new inheritablePermission object for an agent identity blueprint.
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.
[!INCLUDE permissions-table]
[!INCLUDE rbac-agentid-apis-write]
POST /applications/{id}/microsoft.graph.agentIdentityBlueprint/inheritablePermissions| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
In the request body, supply a JSON representation of the inheritablePermission object.
You can specify the following properties when creating an inheritablePermission.
| Property | Type | Description |
|---|---|---|
| resourceAppId | String | The appId of the resource application that publishes the scopes. Required. |
| inheritableScopes | inheritableScopes | Inheritance configuration defining which delegated permission scopes from the resource application may be automatically inherited by agent identities. Specify one of the patterns: allAllowedScopes (all scopes), enumeratedScopes (only listed scopes collection; must be present and non‑empty), or noScopes (inherit none). Required. |
If successful, this method returns a 201 Created response code and an inheritablePermission object in the response body.
This example creates an inheritablePermission that allows all delegated permission scopes from the resource application to be inheritable by agent identities.
The following example shows a request.
POST https://graph.microsoft.com/beta/applications/bc057821-f236-49d6-9f2c-1ebf43e9437a/microsoft.graph.agentIdentityBlueprint/inheritablePermissions
Content-Type: application/json
{
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"inheritableScopes": {
"@odata.type": "microsoft.graph.allAllowedScopes"
}
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#applications('bc057821-f236-49d6-9f2c-1ebf43e9437a')/inheritablePermissions/$entity",
"@odata.type": "#microsoft.graph.inheritablePermission",
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"inheritableScopes": {
"@odata.type": "microsoft.graph.allAllowedScopes",
"kind": "allAllowed"
}
}This example creates an inheritablePermission that allows only the specified delegated permission scopes from the resource application to be inheritable by agent identities.
The following example shows a request.
POST https://graph.microsoft.com/beta/applications/bc057821-f236-49d6-9f2c-1ebf43e9437a/microsoft.graph.agentIdentityBlueprint/inheritablePermissions
Content-Type: application/json
{
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"inheritableScopes": {
"@odata.type": "microsoft.graph.enumeratedScopes",
"scopes": [
"User.Read",
"Mail.Read"
]
}
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#applications('bc057821-f236-49d6-9f2c-1ebf43e9437a')/inheritablePermissions/$entity",
"@odata.type": "#microsoft.graph.inheritablePermission",
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"inheritableScopes": {
"@odata.type": "microsoft.graph.enumeratedScopes",
"kind": "enumerated",
"scopes": [
"User.Read",
"Mail.Read"
]
}
}This example creates an inheritablePermission that blocks all delegated permission scopes from the resource application from being inheritable by agent identities.
The following example shows a request.
POST https://graph.microsoft.com/beta/applications/bc057821-f236-49d6-9f2c-1ebf43e9437a/microsoft.graph.agentIdentityBlueprint/inheritablePermissions
Content-Type: application/json
{
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"inheritableScopes": {
"@odata.type": "microsoft.graph.noScopes"
}
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#applications('bc057821-f236-49d6-9f2c-1ebf43e9437a')/inheritablePermissions/$entity",
"@odata.type": "#microsoft.graph.inheritablePermission",
"resourceAppId": "00000003-0000-0000-c000-000000000000",
"inheritableScopes": {
"@odata.type": "microsoft.graph.noScopes"
}
}