In Connecting Power Platform to Azure, securely I suggested one question for choosing the identity a flow uses to call Azure: do you need to know who did it? If yes, connect as the user. If no, connect as a service principal.
That question settles most cases. This post covers the ones where the answer isn’t obvious, and ends with a table you can apply to your own flows.
When people need different access
There’s a second reason to connect as the user: different people should see different things. A service principal has one set of permissions, so everyone using the flow gets the same access. A user connection lets Azure apply each person’s own permissions.
Two examples:
- Azure SQL Database. Sign in with Entra ID and map users, or better, Entra security groups, to database roles. Row-level security can then filter what each person sees, and the database’s audit log records who changed what. Through a service principal, every change looks like the same application.
- Blob storage. Assign roles such as Storage Blob Data Reader on individual containers, not the whole storage account. Each person can then reach only the containers their group is allowed. A service principal would need access to all of them, so the flow would have to enforce the rules itself.
If you find yourself writing permission checks inside an app or flow, that’s a sign it should connect as the user and leave the checks to Azure.
Flows with nobody signed in
The “connect as the user” answer only works when there is a user. An instant flow, triggered from an app or a button, has one: you can set its connections via “Run only users” so each person runs the flow as themselves.
Automated and scheduled flows have no one signed in. They run on whatever connections were saved in them, which may be the maker’s own, or whoever has been designated as the flow’s owner. That causes two problems:
- Every run uses the flow owner’s access. The audit log names the owner. You get neither attribution nor separate access.
- The flow depends on one person’s account. When the owner changes role, their access changes with them. When they leave and the account is disabled, the flow stops, often without anyone noticing for days.
So for automated and scheduled flows, the answer is nearly always a service principal. If you do need to record who caused the change, pass that person’s details in as data and log them, rather than trying to run as them.
Service accounts: the last resort
A service account looks like a fix for the problem above: a user account that belongs to no one, so it never leaves. In practice it brings its own problems:
- It has a password that someone has to store, share and rotate.
- It can’t complete multi-factor authentication (MFA) on its own, so it’s often excluded from MFA and Conditional Access. That makes it one of the easiest accounts in the tenant to misuse.
- Its actions can’t be traced to a person, so it gives you no attribution.
- It usually needs a licence.
To make life easy, service accounts are often given broad access. This, combined with weaker security such as no MFA, makes them a vulnerability.
Use one only when a connector supports neither user sign-in through Entra ID nor a service principal. Even then, give it the narrowest access possible and keep it out of interactive sign-in.
Choosing, scenario by scenario

| Scenario | Connect as | Why |
|---|---|---|
| Send a prompt to an LLM | Service principal | Who asked doesn’t matter, and users shouldn’t hold the access themselves |
| Read a setting or secret from Key Vault | Service principal | Individuals shouldn’t have Key Vault access |
| Nightly sync between two systems | Service principal | Scheduled, so nobody is signed in |
| Flow triggered when a record changes | Service principal | Automated, so nobody is signed in; log who changed the record as data |
| Update a database where each change is recorded against a person | User | You need to know who did it |
| Show files from Blob containers that differ by team | User | People need different access |
| Connector with no Entra ID or service principal support | Service account | Last resort; narrow access, no interactive sign-in |
What I’d check in a review
- Flows running as people who have left or moved on. Look for automated and scheduled flows whose connections belong to disabled accounts or to people in a different role.
- Service accounts excluded from MFA. Check Conditional Access exclusions, and ask what each excluded account is for.
- Instant flows that use the maker’s connection. If the flow is meant to run as each user, check that its connections are defined in the “Run only users” settings. Otherwise every run quietly uses the maker’s access.
- Service principals with broad roles. A service principal should have a specific role on a specific resource, not Contributor on a whole subscription.
- Permission checks built into apps or flows. These usually mean the flow should connect as the user instead.
What’s next
The next post shows how to build a custom connector that signs in as the user, so a flow can call Azure with each person’s own access.
Written as of December 2026. Power Platform changes quickly, so check the details against current Microsoft documentation.