Version 2.5.2
Changelog
- introduced
Reports
namespace, refer official documentation for a more details Outlook
namespace model updates- SharePoint API: model updated to
16.0.21729.12001
version
Example: Get details about Microsoft 365 active users
Documentation: reportRoot: getOffice365ActiveUserDetail
use Office365\GraphServiceClient;
use Office365\Runtime\Auth\AADTokenProvider;
use Office365\Runtime\Auth\ClientCredential;
function acquireToken()
{
$resource = "https://graph.microsoft.com";
$provider = new AADTokenProvider($tenantName);
return $provider->acquireTokenForClientCredential($resource,
new ClientCredential($clientId, $clientSecret),["/.default"]);
}
$client = new GraphServiceClient("acquireToken");
$result = $client->getReports()->getOffice365ActivationCounts()->executeQuery();
var_dump($result->getValue());
$result = $client->getReports()->getOffice365ActiveUserDetail("D7")->executeQuery();
var_dump($result->getValue());