web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Flow Fa...
Power Automate
Answered

Power Automate Flow Failing to Create Teams Message – 401 Unauthorized

(1) ShareShare
ReportReport
Posted on by Microsoft Employee
The flow is failing during the Microsoft Teams notification/message creation step.
 
Error Details:
- Status Code: 401 Unauthorized
- Error Code: DirectApiAuthorizationRequired
- Message: "The OAuth authorization scheme is required. Please add authentication scheme and try again."
 
The logs indicate that the HTTP request to the Teams endpoint is not being authenticated correctly. As a result, the flow is unable to create or send Teams messages/notifications.
 
Please investigate the authentication configuration for the Teams messaging step and advise on the required changes to restore functionality.
 
Flow Name: Power Platform , GithubFlow, MicrosoftQNA, Reddit Workflow Flow
image (16).png
11.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    Valantis Profile Picture
    6,735 on at
     
    The error DirectApiAuthorizationRequired means the HTTP action is calling a Microsoft Teams endpoint directly without OAuth authentication, but Teams requires an authenticated request.
     
    This typically happens when:

    - The flow uses an HTTP action to call a Teams or Graph API endpoint directly instead of using the Microsoft Teams connector
    - The HTTP action has no authentication configured
    - A previously working connection expired or was revoked
     
    Fix options:
     
    1. Use the Microsoft Teams connector instead of a raw HTTP action. The Teams connector (Post a message in a chat or channel, Post an adaptive card etc.) handles OAuth automatically through the connection. Replace the HTTP step with the appropriate Teams connector action.
     
    2. If you need to use the HTTP action directly (e.g. calling Graph API for a Teams endpoint), add authentication to the HTTP action: click the three dots on the action > Settings > Authentication > Active Directory OAuth, then configure Tenant, Client ID, Secret, and Audience (https://graph.microsoft.com).
     
    3. If the Teams connector action is already being used and started failing: the connection may have expired. Go to the flow's connections, find the Teams connection, and reconnect it by re-authenticating.
     
    Given the flow names (GithubFlow, Reddit Workflow) suggest this may be an integration flow that's been running a while and a token/connection expired rather than a new configuration issue. Reconnecting the Teams connection is the first thing to try.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    11manish Profile Picture
    3,333 on at
    Start by re-authenticating the Microsoft Teams connection and validating the Connection Reference used by the flow. In most cases, this resolves the issue
     
    without any changes to the flow logic.

    If the problem persists, review the failed action's Raw Inputs/Outputs to determine whether the request is being sent through the standard Teams connector or
     
    through a direct HTTP/Graph API call, as the remediation steps differ for each approach.
  • HR-24060900-0 Profile Picture
    Microsoft Employee on at
    I have verified all the configurations and everything appears to be correct. However, when I click the test action, I receive the following error:

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard