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.
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
LifecycleWorkflows.ReadWrite.All
Delegated (personal Microsoft account)
Not supported
Application
Not supported
Important
The calling user also requires one of the following Azure Resource Manager roles for the specified Azure Logic App: Logic App contributor, Contributor, or Owner.
For delegated scenarios, the admin needs one of the following Azure AD roles:
Global administrator
Lifecycle workflows administrator
HTTP request
POST /identityGovernance/lifecycleWorkflows/customTaskExtensions
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Content-Type
application/json. Required.
Request body
In the request body, supply a JSON representation of the customTaskExtension object.
You can specify the following properties when creating a customTaskExtension.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
CustomTaskExtension customTaskExtension = new CustomTaskExtension();
customTaskExtension.displayName = "Grant manager access to mailbox and OneDrive";
customTaskExtension.description = "Grant manager access to mailbox and OneDrive";
LogicAppTriggerEndpointConfiguration endpointConfiguration = new LogicAppTriggerEndpointConfiguration();
endpointConfiguration.subscriptionId = "c500b67c-e9b7-4ad2-a90d-77d41385ae55";
endpointConfiguration.resourceGroupName = "RG-LCM";
endpointConfiguration.logicAppWorkflowName = "ManagerAccess";
customTaskExtension.endpointConfiguration = endpointConfiguration;
AzureAdTokenAuthentication authenticationConfiguration = new AzureAdTokenAuthentication();
authenticationConfiguration.resourceId = "542dc01a-0b5d-4edc-b3f9-5cfe6393f557";
customTaskExtension.authenticationConfiguration = authenticationConfiguration;
CustomExtensionClientConfiguration clientConfiguration = new CustomExtensionClientConfiguration();
clientConfiguration.maximumRetries = 1;
clientConfiguration.timeoutInMilliseconds = 1000;
customTaskExtension.clientConfiguration = clientConfiguration;
CustomTaskExtensionCallbackConfiguration callbackConfiguration = new CustomTaskExtensionCallbackConfiguration();
callbackConfiguration.timeoutDuration = DatatypeFactory.newInstance().newDuration("PT5M");
customTaskExtension.callbackConfiguration = callbackConfiguration;
graphClient.identityGovernance().lifecycleWorkflows().customTaskExtensions()
.buildRequest()
.post(customTaskExtension);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new CustomTaskExtension();
$requestBody->setDisplayName('Grant manager access to mailbox and OneDrive');
$requestBody->setDescription('Grant manager access to mailbox and OneDrive');
$endpointConfiguration = new CustomExtensionEndpointConfiguration();
$endpointConfiguration->set@odatatype('#microsoft.graph.logicAppTriggerEndpointConfiguration');
$additionalData = [
'subscriptionId' => 'c500b67c-e9b7-4ad2-a90d-77d41385ae55',
'resourceGroupName' => 'RG-LCM',
'logicAppWorkflowName' => 'ManagerAccess',
];
$endpointConfiguration->setAdditionalData($additionalData);
$requestBody->setEndpointConfiguration($endpointConfiguration);
$authenticationConfiguration = new CustomExtensionAuthenticationConfiguration();
$authenticationConfiguration->set@odatatype('#microsoft.graph.azureAdTokenAuthentication');
$additionalData = [
'resourceId' => '542dc01a-0b5d-4edc-b3f9-5cfe6393f557',
];
$authenticationConfiguration->setAdditionalData($additionalData);
$requestBody->setAuthenticationConfiguration($authenticationConfiguration);
$clientConfiguration = new CustomExtensionClientConfiguration();
$clientConfiguration->set@odatatype('#microsoft.graph.customExtensionClientConfiguration');
$clientConfiguration->setTimeoutInMilliseconds(1000);
$additionalData = [
'maximumRetries' => 1,
];
$clientConfiguration->setAdditionalData($additionalData);
$requestBody->setClientConfiguration($clientConfiguration);
$callbackConfiguration = new CustomExtensionCallbackConfiguration();
$callbackConfiguration->set@odatatype('#microsoft.graph.identityGovernance.customTaskExtensionCallbackConfiguration');
$callbackConfiguration->setTimeoutDuration(new \DateInterval('PT5M'));
$requestBody->setCallbackConfiguration($callbackConfiguration);
$requestResult = $graphServiceClient->identityGovernance()->lifecycleWorkflows()->customTaskExtensions()->post($requestBody);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.