Hey Everyone,
I'm pretty far down the road with a Flow to query the graph api for user delta changes. I just need to pass the JSON body to a Desktop Flow.
The output after a Parse JSON looks like this:
{
"from": [
{
"jobTitle": "Retail Manager",
"companyName": "Testing",
"department": "Testing",
"userPrincipalName": "AdeleV@y37.onmicrosoft.com",
"country": "United States",
"id": "152a2f01-2de6-4030-8b23-da0fafe2"
},
{
"jobTitle": "Marketing Assistant",
"companyName": "Testing",
"department": "Testing",
"userPrincipalName": "AlexW@y37.onmicrosoft.com",
"country": "United States",
"id": "ec31b4cd-b3b7-4e4b-89a8-c94921d"
},
{
"department": "Testing",
"userPrincipalName": "testadmin@y37.onmicrosoft.com",
"id": "e3fe7172-7c9a-4463-9176-b0006c17b"
},
{
"jobTitle": "HR Manager",
"department": "Testing",
"userPrincipalName": "DiegoS@y37.onmicrosoft.com",
"country": "United States",
"id": "db9b2dd7-7295-409a-a3d9-ade02982"
},
{
"jobTitle": "Designer",
"department": "Testing",
"userPrincipalName": "GradyA@y37.onmicrosoft.com",
"country": "United States",
"id": "20836cc9-3bdf-445a-9d63-ce304b7c"
}
]
}
And the Desktop Flow looks like this:

(the AddToGroup flow is just a test for a PowerShell script)
The mapping of the Desktop flow variables is easy. What I can't figure out is the For Each "user" component. What do I use to group the values by user? The best I've been able to get so far is an ungrouped array of values.
Cheers.