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
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Update the properties of a roleManagementCustomCalloutExtension object.
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) | PrivilegedAccess-CustomExt.ReadWrite.All | Not available. |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | PrivilegedAccess-CustomExt.ReadWrite.All | Not available. |
Important
For delegated access using work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role that grants the permissions required for this operation. Privileged Role Administrator is the least privileged role supported for this operation.
HTTP request
PATCH /identityGovernance/privilegedAccess/customExtensions/{roleManagementCustomCalloutExtensionId}
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
Request body
In the request body, supply only the values for properties to update. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values.
The following table specifies the properties that can be updated.
| Property | Type | Description |
|---|---|---|
| authenticationConfiguration | customExtensionAuthenticationConfiguration | The authentication configuration used to secure calls to the external app. |
| clientConfiguration | customExtensionClientConfiguration | The timeout and retry settings for calls to the external app. |
| customAttributes | String collection | The custom attribute names to include in the callout payload. |
| description | String | The description of the custom extension. |
| displayName | String | The display name of the custom extension. |
| endpointConfiguration | customExtensionEndpointConfiguration | The configuration for the external endpoint that PIM calls. |
| isEnabled | Boolean | Indicates whether the custom extension is enabled. |
| resourceType | customExtensionResourceType | The PIM provider to which the extension applies. The possible values are: entraRoles, azureResources, entraGroups, unknownFutureValue, applicationAuthorization, appRoles. |
| type | customCalloutExtensionType | The lifecycle stage at which PIM invokes the extension. The possible values are: preApproval, postApproval, grant, revoke, unknownFutureValue. |
For the applicationAuthorization and appRoles values of resourceType to be returned in responses, use the Prefer: include-unknown-enum-members request header. For more information, see Handling future members in evolvable enumerations.
Response
If successful, this method returns a 200 OK response code and an updated roleManagementCustomCalloutExtension object in the response body.
Examples
Request
The following example disables a custom extension.
PATCH https://graph.microsoft.com/beta/identityGovernance/privilegedAccess/customExtensions/a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d
Content-Type: application/json
{
"isEnabled": false
}
Response
The following example shows the response. The response might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.roleManagementCustomCalloutExtension",
"id": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d",
"displayName": "Role assignment ticket validation",
"resourceType": "entraRoles",
"type": "preApproval",
"customAttributes": ["department", "costCenter"],
"isEnabled": false
}