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 Apps / Error when running a f...
Power Apps
Unanswered

Error when running a flow from a Power App

(1) ShareShare
ReportReport
Posted on by 51

For a customer I have developed a Power App solution. In the Power App a Power Automate flow is called via MyFlow.Run(). The users in the customer tenant get the following message when the flow is triggered: "Principal with id <principal-id> does not have ReadAccess right(s) for record with id <record-id> of entity workflow." (see uploaded image)

I am confused, because in my company tenant where I developed the app I don't get such an error

AND

when I try it with another user in the customer tenant where I have access to there is no problem either. I give the user the same license and the same right to use the app and when I run the app with this user everything works fine. What could be the problem?

Furthermore, what does the "principal id" mean? I would have thought that would be the id of the user of the app where it fails. But it is not the id.

Categories:
I have the same question (0)
  • Jonathan Manrique Profile Picture
    2,687 on at

    Hi @tnickel 

     

    Verify that you have permission on that table at the security role level. Likewise, check if the table exists or has the same name

     

     

  • tnickel Profile Picture
    51 on at

    Do you mean in the Power Platform Admin Center (admin.powerplatform.microsoft.com)? Because that is the point: The user I am trying with has the same security roles as the users where the error occurs (see image).

  • Jonathan Manrique Profile Picture
    2,687 on at

    Hi @tnickel 

     

    check the connection string because what the flow says is that the user does not have permission

     

     

  • tnickel Profile Picture
    51 on at

    Where do I check it? And what exactly do I have to check?

    Thanks for your help and excuse me, it is my first project in Power Platform. I am not very experienced.

  • Jonathan Manrique Profile Picture
    2,687 on at

    Hi @tnickel 

     

    Jmanriquerios_0-1711458728299.png

     

     

     

  • tnickel Profile Picture
    51 on at

    Hi @Jmanriquerios 

    tnickel_0-1711458927574.png

    And now?

    Do I have to set up something in the "Run only users" section of the flow?

    So far "Provided by run-only user" was set here.

    tnickel_1-1711459549816.png

    I have set it to "Use this connection", but that didn't help

    tnickel_2-1711459598705.png

    Or do I have to "invite the Sharepoint list"?

    tnickel_3-1711459638945.png

     

  • Jonathan Manrique Profile Picture
    2,687 on at

    Hi @tnickel 

    Check if the user has permission in the sharepoint list that is executing the flow

    The connection string must be associated with the environment user

     

     

  • tnickel Profile Picture
    51 on at

    The Sharepoint list is in a Sharepoint Website. I have added the users as members to the group

    tnickel_0-1711460401734.png

    tnickel_1-1711460651371.png

    "The connection string must be associated with the environment user" - so do you mean "Provided by run-only user"?

  • tnickel Profile Picture
    51 on at

    I now created a whole new user and now I can reproduce it.

    What I found out now: If I share the flow with the user, it works.

    tnickel_1-1711527038932.png

    But I don't want to share the flow with everyone who uses the app. I would assume that if I set the "Connections Used" to "This connection (...)" that the flow runs in context of this connection which is established and it should work. What is my mistake here?

  • Jonathan Manrique Profile Picture
    2,687 on at

    Hi @tnickel 

     

    You are telling it to always run it with that same user, but perhaps the ideal would be to run it with the user who triggers 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard