Hi,
I'm using powerapps to trigger a flow to add and remove users from certain azure security groups.
I'm able to add users to the group, but can't remove them, because the user running th powerapp are not the owner of the group.
The connection in my flow is running as the tenant admin, and if I'm running the powerapp with my admin account it works.
But when i run the app with a normal user, I get the following error trying to remove a user:
{
"error": {
"code": "Authorization_RequestDenied",
"message": "Insufficient privileges to complete the operation.",
"innerError": {
"date": "2021-05-28T09:11:16",
"request-id": "a97f1008-05e1-40e3-a9d5-318fd56bf2ea",
"client-request-id": "a97f1008-05e1-40e3-a9d5-318fd56bf2ea"
}
}
}
I thought that the flow was running as the user in the connection regardless of which user are running the app?