How to fix Power Automate flow 401 / 403 Unauthorized errors

Separate authentication, access and policy failures; trace connection references and verify the selected HTTP or connector identity before retrying.

Yellow AutomateLab title card reading How to fix Power Automate flow 401 / 403 Unauthorized errors, labelled RPA.
Diagnose Power Automate authentication and access failures using the selected action, identity, connector and resource.

TL;DR: For Power Automate 401/403 errors, inspect the failed action's identity and response, then repair authentication, permissions or policy according to the connector.

Checked 30 October 2026. A connection can show Connected while an operation still lacks permission. Start with the actual failing action and error body; repeatedly signing in can leave the real problem untouched.

How do you tell 401 and 403 apart in Power Automate?

Open the failed run, expand the affected action and record its connector, status, error code and request/correlation ID. Microsoft's cloud-flow error reference separates authentication failures from forbidden operations, broken connections and missing connection mappings.

ResponseFirst checksNext evidence
401 UnauthorizedSelected identity, connection health, token or credential validityConnection error and sign-in failure details
403 ForbiddenRequired permissions, consent, resource access and policyAPI-specific error and effective caller
Connected but action failsOperation-specific access and actual connection bindingRequired scopes/roles and target resource

Use the response details to narrow those checks. For example, Microsoft's Graph authorization guide lists wrong token audience, mismatched permission type and Conditional Access claims among possible 403 causes. Include token context in the 403 investigation.

A failed action leads to credential and token context checks, then operation and resource access checks; 401 and 403 guide investigation without proving the cause.
Use 401 and 403 as starting points, then inspect the actual credential context, required operation and API error before choosing a repair.

Fix 401: How do you re-authenticate the connection?

For a connector action with a broken connection, use Microsoft's connection management steps. Portal navigation can show Connections under More or Data; match the connector and account to the failed action.

  1. Open the failing action and identify its selected connection and account.
  2. Open Connections and select Fix connection when the connection reports a problem.
  3. Complete the requested sign-in or consent process with the intended identity.
  4. If replacing the connection, select the replacement on the action and save the flow.
  5. Run a harmless test of the same operation and resource.

In solution-aware flows, the action can bind through a connection reference. Check which connection that reference selects in this environment. References can be shared by multiple flows, so review dependent flows before changing the mapping or deleting the old connection.

Two example flow actions share a connection reference bound to the selected connection; creating a new unused connection leaves that mapping unchanged.
Trace the failed action through its connection reference to the selected connection; review dependent flows before changing a shared mapping.

If the repair fails again, use the specific connection error and Microsoft Entra sign-in logs to investigate consent, credential changes or Conditional Access. Microsoft's connection failure guide covers these checks. Do not infer a fixed token lifetime from how long the flow happened to work.

Fix 403: Which permission, resource or policy denied access?

Check the operation and effective caller before granting access. A read operation and an update need different permissions; membership of a team, site or environment is not a universal authorisation test.

Connector or APIWhat to inspect
SharePointSelected site/list/file and the connection identity's permission for the requested read or write
DataverseEffective user/application user, table privileges, row access and environment
Office 365 OutlookMailbox access and the permissions required by the selected shared-mailbox action
HTTP with Microsoft Entra IDConsent and every required delegated scope for the target API
Any connectorExplicit policy or tenant restriction reported by the platform

The HTTP with Microsoft Entra ID reference documents a concrete trap: connection creation can succeed with incomplete scopes, then calls fail with 403. Grant or correct the required permission first, then reconnect when the change requires a fresh sign-in.

For SharePoint, test the exact resource with the selected identity and inspect the connector's operation requirements. Grant only what the intended action needs; "at least Contribute everywhere" is not an appropriate read-access fix. Ask an administrator to review a reported data policy rather than removing it as a default remedy.

Fix HTTP: How do you investigate a 401 or 403?

Identify the exact action first. Generic HTTP and HTTP with Microsoft Entra ID have different authentication configuration. The latter uses a connection; generic HTTP can use configured Authentication, so a pasted Authorization header is not the only possible credential source.

Compare the failing call with a known-good request using the same method, URL, tenant, identity and auth mechanism. Check expiry, target audience and the API's required delegated or application permissions. A Postman login may represent a different user or permission grant; a successful call proves only that request worked.

Microsoft's underlying HTTP operation documentation describes its Authentication setting. Check the options actually exposed in Power Automate; Azure Logic Apps-specific managed identity or hosting features are not automatically available in every flow.

For an explicitly supplied bearer header, the shape is Authorization: Bearer <redacted>. Compare structure without copying live tokens into tickets or public decoders. Secure inputs and outputs can hide sensitive run-history values; review what will be exposed before changing those settings.

Redacted example HTTP request with caller, tenant, expiry, target audience and delegated or application permission checks; no live token is shown.
Compare method, URL and authentication context with a known-good call, while keeping live credentials out of shared diagnostic evidence.

How do you fix recurring 401 errors with a service principal?

Use a service principal only when the connector supports that authentication model. Service-principal flow ownership and an action's connection identity are separate choices. Review action connections separately after changing ownership, and check licensing and connection-access requirements.

Dataverse explicitly supports service-principal connections. Its documented setup includes an Entra application, client secret, Dataverse application user and sufficient privileges, then Add new connection > Connect with service principal. Plan credential rotation and validate each action; do not treat this as a way to bypass organisational policy.

Dataverse also has an important scope difference: current-environment actions can keep running after a connection expires if the related user remains enabled and sufficiently privileged, while cross-environment actions require an active connection. Diagnose the selected action rather than applying one expiry rule to every connector.

How do you verify the authentication fix?

  1. Record the failing action, connection/reference, caller and target resource.
  2. Apply the matching credential, permission or policy repair.
  3. Test the same harmless operation with the intended production identity.
  4. Check the response and expected result, including downstream actions.
  5. Retest the normal scheduled or triggered path before closing the incident.

Review side effects before resubmitting failed runs. For a flow with no new runs, use the separate trigger diagnostics guide. The HTTP request setup guide covers action configuration, while the Automation Error Index links related failures.

FAQ

What is the difference between 401 and 403 in Power Automate?

Start a 401 investigation with authentication and a 403 investigation with permission or policy. Read the API's error details because token audience and claims problems can also produce 403.

Why does my Power Automate flow keep getting 401 even after I reconnect?

Check that the failed action uses the repaired connection, then inspect credential, consent and sign-in errors. A replacement connection that the flow never selected will not fix the original call.

How do I update the connection used by a Power Automate flow?

Select the intended connection on the affected action and save. For a solution-aware flow, check its connection-reference mapping and other flows sharing that reference.

Why does the HTTP action return 401 when my Postman request works?

Compare the actual identity, tenant, audience, permissions and auth configuration. The two clients do not automatically use the same sign-in or token.

How do I fix "User does not have access" in the SharePoint connector?

Confirm the connection identity and exact site, list or file, then grant the permission required by that operation. A read failure does not automatically require Contribute access.

When should I use a service principal instead of a user account?

Consider it for supported production integrations that need stable ownership and managed credentials. Verify connector support, application permissions, licensing and rotation; flow ownership alone does not change action authentication.