Hello All, I'm using the MS Graph API to invite, then update Guest users in the AAD. Invite works perfectly, but is limited as to what attributes can be defined. Once the user has been invited, we need to assign a license, add to groups etc. However, I'm getting stuck on updating the 'usageLocation' and things like givenName, surname etc using an HTTP PATCH.
Here is the snip of what the step in the flow looks like:
It DOES work if I put the ObjectId in the URI such as https://graph.microsoft.com/v1.0/users/a9cdq2c1-3ye1-4d30-b3y0-598c13f5c91c, but I technically can't get that without a GET from the user API, which I would have to use the userPrincipleName to get.
If I use the exact same PATCH in Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph,
it works perfectly. I also attempted to get the ObjectID via Power Automate HTTP, but it also doesn't resolve that email or userPrincipleName that contains the '#EXT#@org.onmicrosoft.com'.
The error in the flow looks like this:

Report
All responses (
Answers (