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

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,270 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard