powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

Where is the documentation ?

Open martintamare opened this issue 1 year ago • 0 comments

Hello there,

I'm trying to find the documentation associated to this call in Win10_PrimaryUser_Set.ps1 (https://github.com/microsoftgraph/powershell-intune-samples/blob/master/ManagedDevices/Win10_PrimaryUser_Set.ps1)

$graphApiVersion = "beta"
$Resource = "deviceManagement/managedDevices('$IntuneDeviceId')/users/`$ref"
...
$uri = "https://graph.microsoft.com/$graphApiVersion/$($Resource)"

$userUri = "https://graph.microsoft.com/$graphApiVersion/users/" + $userId

$id = "@odata.id"
$JSON = @{ $id="$userUri" } | ConvertTo-Json -Compress

Invoke-RestMethod -Uri $uri -Headers $authToken -Method Post -Body $JSON -ContentType "application/json"

I did not find anything anywhere : any pointers ?

martintamare avatar Sep 24 '24 15:09 martintamare