Skip to main content

Notifications

Community site session details

Community site session details

Session Id : JMjrv4WFnK2ppe/FoqPnEE
Power Automate - Using Flows
Suggested answer

401 Unauthorized - You do not have permissions to perform action 'run' on scope '/triggers/manual/paths/'

Like (0) ShareShare
ReportReport
Posted on 11 May 2021 07:47:27 by 4

Hello,

 

I am a total beginner in ms flow. My task is to integrate signing application with Sharepoint. I created HTTP triggered flow that receives signed documents and then stores them in Sharepoint.

 

patryks_0-1620718796977.png

 

When I trigger this flow from Postman by executing generated url address then everything works just fine - document is added to Sharepoint. When I execute this url from my application then I receive:

 

 

org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [{"error":{"code":"AuthorizationFailed","message":"You do not have permissions to perform action 'run' on scope '/triggers/manual/paths/'. Verify you are making the request with the appropriate HTTP method. See http://aka.ms/logic-trigger for details."}}]

 


 I searched the internet and found some similar cases but in none of them, I found relevant explanations or solutions. If you could help me understand:

1. why is it working in postman and not in the application

2. how to fix it?

  • Suggested answer
    AW-31032122-0 Profile Picture
    2 on 31 Mar 2025 at 21:29:06
    401 Unauthorized - You do not have permissions to perform action 'run' on scope '/triggers/manual/paths/'
    Not sure if anyone is still dealing with this issue but I recently ran into it... When you copy the url out of power automation it has the "/" part in the sp query param encoded to %2F. Springboot's RestTemplate does not handle this correctly. Just convert the %2F back to a / in webhook url and this should solve your issue... At least it did for me! Curl and Postman were able to handle the url encoding, RestTemplate was not
     
    so instead of sp=%2Ftriggers%2Fmanual%2Frun it would just be sp=/triggers/manual/run
  • LorenzoBoers Profile Picture
    8 on 17 Feb 2023 at 13:59:05
    Re: 401 Unauthorized - You do not have permissions to perform action 'run' on scope '/triggers/manual/paths/'

    Any results yet? I'm experiencing a simular issue.

  • patryks Profile Picture
    4 on 14 May 2021 at 12:40:09
    Re: 401 Unauthorized - You do not have permissions to perform action 'run' on scope '/triggers/manual/paths/'

    Ok. I will try that but at first glance, it seems it is exactly the same way as I did - the only change is that in this link the header is named "content-type" and I use "Content-Type". Will get back to you with the results. Thank you. 

  • patryks Profile Picture
    4 on 13 May 2021 at 11:56:32
    Re: 401 Unauthorized - You do not have permissions to perform action 'run' on scope '/triggers/manual/paths/'

    Basically I use restTemplate

     

    //url - hardcoded url generated in flow
    
    ResponseEntity<Object> responseEntity = restTemplate.exchange(url, HttpMethod.POST, entity, Object.class);

    I do not set any headers except for Content-Type: application/json. The url is interpreted correctly as when I remove parameters sp, sv or api-version then I receive other exception.

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on 12 May 2021 at 13:28:12
    Re: 401 Unauthorized - You do not have permissions to perform action 'run' on scope '/triggers/manual/paths/'

    @patryks  can you share the code that you are using to do the HTTP request to trigger the flow?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Using Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 7 Super User 2025 Season 1

#1
rzaneti Profile Picture

rzaneti 7 Super User 2025 Season 1

#3
CU20032117-0 Profile Picture

CU20032117-0 4

Overall leaderboard

Featured topics

Restore a deleted flow