MS Graph API - ManagedDevices obtaining Scope
问题 My goal is to create a schedulable PowerShell script that will report on recently enrolled devices. I have created the Application and granted some permissions. $OauthTokenEndpoint = 'https://login.microsoftonline.com/tenantid/oauth2/token' $OauthRequest = @{ grant_type="client_credentials" client_id = "clientidguid" client_secret = "clientidsecret" resource = "https://graph.microsoft.com" scope="DeviceManagementManagedDevices.Read.All" } $AuthResponse = Invoke-RestMethod -Uri