
Announcements
I'm trying to send an HTTP PUT to update the manager attribute on a user via Graph API.
I've tested the request in the graph explorer, and it works fine.
I've taken the exact bod content from explorer & put it in the body of a power automate http action, and it gives an instant error about invalid JSON. I'm following the documentation for the function here: https://docs.microsoft.com/en-us/graph/api/user-post-manager?view=graph-rest-1.0&tabs=http
I have determined via graph explorer that the call works with both a UPN and/or an object ID for the 2 users in question.
In graph explorer, my request is:
when I run this query, my test user is updated & I see the manager is assigned.
My flow action is:
The body is a direct copy/paste from explorer... - the fixed size of the action card munges the line wrapping a bit...
When I save this I immediately get an error:
So I can't even test it, since the flow checker isn't happy. For the life of me I cannot figure out how else to format the input... according to the documentation, and the example from graph explorer, that's exactly what it should be?!...
NB: my authentication block is fine... I have another action immediately before this one which creates the user also via a graph call, that bit works fine...
Can anyone offer any insight?
TIA
Paul G.
I figured it out... 🙂
In the body, where I have the "@" symbol, I need to double-it up... i.e "@@" - no idea why, but I saw a reference to it in another blog, gave it a whirl, and it works!
1 problem solved, 99 more to go....
P