Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 579 Bytes

File metadata and controls

21 lines (14 loc) · 579 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Models\UserAccountInformation;
use Microsoft\Graph\Beta\Generated\Models\AllowedAudiences;


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

$requestBody = new UserAccountInformation();
$requestBody->setAllowedAudiences(new AllowedAudiences('organization'));
$requestBody->setCountryCode('NO');

$result = $graphServiceClient->me()->profile()->account()->post($requestBody)->wait();