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 / HTPPS request to Share...
Power Automate
Unanswered

HTPPS request to SharePoint gives me an access denied error

(0) ShareShare
ReportReport
Posted on by 22

Hi,

 

I'm trying to use the technique in this video to create site pages based on a list item in another SP site.

 

https://www.youtube.com/watch?v=QtBqeEEOgdE

 

The use case I have is that I have a list with normalized data I want to turn into site pages. Where my flow is getting stuck is on the step where it needs to call the Template in my SP site that will determine the layout. 

 

I'm getting this error.

 

Web capture_28-6-2021_15467_us.flow.microsoft.com.jpeg

 

The raw output looks like this.

 

{
    "statusCode": 403,
    "headers": {
        "Pragma": "no-cache",
        "x-ms-request-id": "4364d59f-e0c0-0000-c4da-17f625367271",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "X-Content-Type-Options": "nosniff",
        "X-Frame-Options": "DENY",
        "Cache-Control": "no-store, no-cache",
        "Set-Cookie": "ARRAffinity=8ce2988208de9833422b6cabc9516aa20d0421ce61bf7c3c18ce2a28cdfca90c;Path=/;HttpOnly;Secure;Domain=sharepointonline-eus.azconn-eus.p.azurewebsites.net,ARRAffinitySameSite=8ce2988208de9833422b6cabc9516aa20d0421ce61bf7c3c18ce2a28cdfca90c;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-eus.azconn-eus.p.azurewebsites.net",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "true",
        "Date": "Fri, 25 Jun 2021 16:53:41 GMT",
        "Content-Length": "500",
        "Content-Type": "application/json",
        "Expires": "-1"
    },
    "body": {
        "status": 403,
        "message": "Access denied.\r\nclientRequestId: 224187df-0df2-46de-8c23-f59f4f20884e\r\nserviceRequestId: 4364d59f-e0c0-0000-c4da-17f625367271",
        "errors": [
            "-2147024891",
            "System.UnauthorizedAccessException"
        ]
    }
}
 
On the surface, it looks like I don't have permissions in the Sharepoint Site where the template lives, but I do. I'm the owner of the site and the super admin for my tenant. Technically, my account should have permission to do anything and everything, but I know that's not the case. 
 
Where do I go from here?
Categories:
  • PrasadAthalye Profile Picture
    on at

    URL mentioned in the source does not appear to be complete. Can you copy paste that URL and put it in the browser and test it if it works? 

  • kevintaylor81 Profile Picture
    22 on at

    @PrasadAthalye  I assure you it is complete /sites/ComplianceSupport/SitePages/Templates/ImportTemplate.aspx maps back to my template. Do I need to provide the complete URL? I tried using the GetFileByRelativeURL method and that didn't work.

  • kevintaylor81 Profile Picture
    22 on at

    So when I put in the full URL "https....blah blah blah" don't get the access denied issue, but the flow keeps running and retrying. 

    Web capture_1-7-2021_205826_us.flow.microsoft.com.jpeg

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard