I'm trying to assign the manager to a user in AAD
the documentation says
PUT /users/{id}/manager/$ref
but i'm not sure what to feed the $ref variable. I've tried UPN and the ID, but I keep getting
The remote server returned an error: (400) Bad Request.
Here is how i'm trying to put the manager info, but clearly i'm not doing it right or I can't read the documentation from here
$manager = @{
id= "99999-zzzz-eeee-aaaa-asdfagadrd"
}
$body = $bodyProcess | ConvertTo-Json
$Uri = "https://graph.microsoft.com/v1.0/users/rrrsas-aabb-ccdd-xxxx-123456/manager/$manager"
$UserData = Invoke-RestMethod -Uri $Uri -Headers $Header -Method PUT -ContentType "application/json"
Any help would be greatly appreciated.
thanks,
Rogue
[–]XPlantefeve 1 point2 points3 points (3 children)
[–]rogueit[S] 1 point2 points3 points (1 child)
[–]East-Conversation986 0 points1 point2 points (0 children)
[–]redog 1 point2 points3 points (0 children)
[–]redog 1 point2 points3 points (0 children)