Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.39 KB

File metadata and controls

38 lines (31 loc) · 1.39 KB
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\CustomCalloutExtension;
use Microsoft\Graph\Beta\Generated\Models\AccessPackageAssignmentWorkflowExtension;
use Microsoft\Graph\Beta\Generated\Models\LogicAppTriggerEndpointConfiguration;
use Microsoft\Graph\Beta\Generated\Models\AzureAdPopTokenAuthentication;


$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);

$requestBody = new CustomCalloutExtension();
$additionalData = [
	'value' => [
		'@odata.type' => '#microsoft.graph.accessPackageAssignmentWorkflowExtension',
		'displayName' => 'test_action_0127_email',
		'description' => 'this is for graph testing only',
		'endpointConfiguration' => [
			'@odata.type' => '#microsoft.graph.logicAppTriggerEndpointConfiguration',
			'subscriptionId' => '38ab2ccc-3747-4567-b36b-9478f5602f0d',
			'resourceGroupName' => 'test',
			'logicAppWorkflowName' => 'elm-extension-email',
		],
		'authenticationConfiguration' => [
			'@odata.type' => '#microsoft.graph.azureAdPopTokenAuthentication',
		],
	],
];
$requestBody->setAdditionalData($additionalData);

$result = $graphServiceClient->identityGovernance()->entitlementManagement()->accessPackageCatalogs()->byAccessPackageCatalogId('accessPackageCatalog-id')->accessPackageCustomWorkflowExtensions()->post($requestBody)->wait();