Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 596 Bytes

intune-onboarding-organization-update-update-organization-php-snippets.md

File metadata and controls

21 lines (14 loc) · 596 Bytes
description
Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\Organization;
use Microsoft\Graph\Generated\Models\MdmAuthority;


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

$requestBody = new Organization();
$requestBody->setOdataType('#microsoft.graph.organization');
$requestBody->setMobileDeviceManagementAuthority(new MdmAuthority('intune'));

$result = $graphServiceClient->organization()->byOrganizationId('organization-id')->patch($requestBody)->wait();