I am trying to find best way to run our Power Automate flows on non-interactive user accounts, Microsoft recommending Service Principals for this purpose.
As per Microsoft documentation below, I was able to create a service principal and assign ownership of a flow to a service principal, but not really sure if this process transfers all connections from a personal account to service principal.
My flows do have MS Teams & SharePoint connectors, could someone shed some light on this and advice whether using service principal is the right approach to accomplish my goals, if not, please suggest alternative.
It depends on what you are doing. Technically I am not aware of a recommendation to run entire flows as a SP. Specific Actions can be, but entire flows... I realize the page says one thing, but in the end its still not really all the SP because you have to share the connections to that non-interacted users, which means the connections and connection references can still fail just as much as if its an interactive user.
Personally I prefer to use a service account because not all actions fall under "you should use an SP for this" because licenses etc are needed.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.