Skip to main content
Community site session details

Community site session details

Session Id : shoayKfQIgIgEQji8GIVh4
Power Apps - Building Power Apps
Answered

Error when running a flow from a Power App

Like (1) ShareShare
ReportReport
Posted on 26 Mar 2024 12:35:47 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.

  • tnickel Profile Picture
    51 on 05 Aug 2024 at 05:53:04
    Error when running a flow from a Power App
    I now marked a post from me how i "solved" it as an answer
  • CU02081514-2 Profile Picture
    2 on 02 Aug 2024 at 15:15:05
    Error when running a flow from a Power App
    Hi
     
    Were you able to find any solution for this problem? I am facing the same problem.
  • zoso2112 Profile Picture
    134 on 16 Apr 2024 at 20:47:09
    Re: Error when running a flow from a Power App

    I have been having a similar error and I finally resolved it by deleting the Flow from my Power App and then adding it back. The flow would perform as expected when I initiated the task in the canvas app but when others with all the required permissions tried, they got this error message. This thread was very helpful so thank you. 

    FlowName.Run failed: {"error":{"code":"0x80048306","message":"Principal with id NNN does not have ReadAccess right(s) for record with id NNN of entity workflow. Details: {\"CallerPrincipal\":{\"PrincipalId\":\"NNN\",\"Type\":8\"IsUserPrincipal\":true},\"OwnerPrincipal\":{\"PrincipalId\":\"NNN\",\"Type\":8\"IsUserPrincipal\":true},\"ObjectID\":\"NNN...



  • Verified answer
    tnickel Profile Picture
    51 on 28 Mar 2024 at 05:45:28
    Re: Error when running a flow from a Power App

    I have now shared it with the group of the Sharepoint website under which the lists that I access are stored. All users of the app have to be in this group anyway so that they can access the data in the lists via the app.

  • Jonathan Manrique Profile Picture
    2,682 on 27 Mar 2024 at 08:59:34
    Re: Error when running a flow from a Power App

    Hi @tnickel 

     

    You can share it with a security group where you put all users

     

     

  • tnickel Profile Picture
    51 on 27 Mar 2024 at 08:25:53
    Re: Error when running a flow from a Power App

    Hi, @Jmanriquerios 

     

    Hmm, maybe. As I said, I'm relatively new to the Power Platform.

    And assuming that it would be best to run the flow with the user who triggered the flow: Do I then have to explicitly share the flow with every user who uses the app? Because without sharing I am encoutering the error. Or is there another option?

  • Jonathan Manrique Profile Picture
    2,682 on 27 Mar 2024 at 08:17:48
    Re: Error when running a flow from a Power App

    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

  • tnickel Profile Picture
    51 on 27 Mar 2024 at 08:12:28
    Re: Error when running a flow from a Power App

    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?

  • tnickel Profile Picture
    51 on 26 Mar 2024 at 13:45:02
    Re: Error when running a flow from a Power App

    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"?

  • Jonathan Manrique Profile Picture
    2,682 on 26 Mar 2024 at 13:31:41
    Re: Error when running a flow from a Power App

    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

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete