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 / SharePoint List Item F...
Power Automate
Answered

SharePoint List Item Flow giving an Unauthorised access error

(0) ShareShare
ReportReport
Posted on by 95

I have created a flow for some users to select an item on a Sharepoint list of people and get a list of assets assigned to those people on a different sharepoint site.  The whole point of the script is that I don't have to give them access to the other sharepoint site but can still return information to them.

 

However the Get Items function is failing with the below error:

 

{"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Attempted to perform an unauthorized operation."}}}

 

According to the script run it using my powerautomate account to run the Get Item function (that account does have access to the other sharepoint site) and not the account of the user who called the flow in SharePoint (who doesn't have access).

 

If I give the user access to the sharepoint site the error doesn't occur but I don't want to give them access.  The whole point is that I can control what information they can access with Power Automate.  Any help or feedback would be greatly appreciated.

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,294 Most Valuable Professional on at

    @eilishourigan 

    Go to the triggers details page and edit the Run only users.

    How is it configured - is it configured to have the users credentials passed through?  If so, select your connection instead.

    image.png

  • eilishourigan Profile Picture
    95 on at

    Thanks Scott,  where is the Trigger's Details page?

  • eilishourigan Profile Picture
    95 on at

    I found it - it's the Run Only Users section on the Flow Details (landing) page.  I edited there, added my user who I want access and changed the connections to the accounts I wanted used, re tested and it works!!  Using PA for nearly two years now on a daily basis and I never knew that was there!  Thank you so much Scott!!!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard