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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The OAuth authorizatio...
Power Automate
Unanswered

The OAuth authorization scheme is required. Please add authentication scheme and try again.

(4) ShareShare
ReportReport
Posted on by 103

Hey guys! I'm creating a flow, where I need it to start after pressing a button in Excel.
In some research, I found that we could create the flow "When an HTTP request is received" and then, select the method 'GET' and add, for example, a script.
However, I am having the error:

{
"error": {
"code": "DirectApiAuthorizationRequired",
"message": "The OAuth authorization scheme is required. Please add authentication scheme and try again."
}
}

Please, can you help me?
Thanks in advance!

Categories:
I have the same question (6)
  • Verified answer
    jsoroko Profile Picture
    17 on at

    I had the same issue and found that you can set the first field "Who can trigger the flow" as "Anyone". When you save the flow it will provide a new URL that does not require authentication when used. If you copy the updated link and assign to the button it should work. 
    jsoroko_0-1695980114677.png

    If you set the first field "Who can trigger the flow" to "Any user in my tenant" or "Specific users in my tenant" then this will require authentication. I do not know however, how to configure it yet. 


     

  • Dhiwakar Profile Picture
    10 on at

    Even I am facing the same issue. Will anyone from Power Automate address this issue?

  • PhFranca Profile Picture
    103 on at

    Hello @jsoroko!
    Worked perfectly!
    Thank you very much for your help and time!

  • PhFranca Profile Picture
    103 on at

    Hello @Dhiwakar !

    Hello! Follow @jsoroko's guidance, it worked perfectly for me.
    Best of regards

  • Dhiwakar Profile Picture
    10 on at

    Helo @PhFranca 

    @jsoroko  's solution will work, but it will make your system easy target to denial-of-service attack. anyone who know the URL can hit it multiple times and make your system to go down. We need to authenticate the requests but we don't know how to achieve that with SharePoint button.

  • PhFranca Profile Picture
    103 on at

    @Dhiwakar Yes I agree with you. That's why I'm the only one who will use it.

  • AlbertoCastro Profile Picture
    1,201 Most Valuable Professional on at

    Hi,

    anyone knows how configure the authentication to call the flow with this trigger from Postman?

  • PhFranca Profile Picture
    103 on at

    Hey,
    Unfortunately I don't know.
    PhFranca

  • dkatzi Profile Picture
    2 on at

    Hey Guys, I am struggling with the same issue.

    The option "Anyone" is not accepted for my organisation.

    We are working to make the option "Any user in my tenant" to work, testing with Postman for a start but we are failing.

    What we have done so far is:

    • Created in Azure an Application Registration with a Certificate as credentials
    • Assigned to that Application Registration Power Automate permissions with the "User" option checked
    • Added the Certificate to Postman

    But it still fails with the following error:

    {
        "error": {
            "code""DirectApiAuthorizationRequired",
            "message""The OAuth authorization scheme is required. Please add authentication scheme and try again."
        }
    }
    If anyone has managed the "Any user in my tenant" authentication option to work, please help.
  • AlbertoCastro Profile Picture
    1,201 Most Valuable Professional on at

    Hi @dkatzi ,

    using a client secret in the app registration I have a postman colletion with examples to call flows with this new security:
    https://github.com/albertocastro365/Power-Automate/tree/main/Postman%20-%20Invocar%20Flows%20con%20HTTP%20Trigger

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Regards
    Alberto

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard