Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the documentation ? #277

Open
martintamare opened this issue Sep 24, 2024 · 0 comments
Open

Where is the documentation ? #277

martintamare opened this issue Sep 24, 2024 · 0 comments

Comments

@martintamare
Copy link

martintamare commented Sep 24, 2024

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant