'PowerAutomate ForEach user loop
I have an automate-admin account (as a global admin) that runs my flows.
Some graph API calls run in the context of the user, and return results related to the user calling (i.e. functions that list my planner tasks).
Is it possible for the automate-admin to run as a user so that when calling the graph API it would return the user info?
Pseudo code is below:
ForEach (user in users)
Context = SwitchUserContext(user)
Context.Switch()
// Any calls here are as if user is calling API
... Call API ...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
