For a customer, I have developed a Power App solution. In the PowerApp 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."
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 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.
This sounds like you need rights for Power Automate management, as you run a flow by code. Could this be a problem, this right needs to be assigned? Power Automate management rights are situated under /connections on the PowerAutomate environment URL.
PrincipalID might refer to your user or entra app source (always confused by the two) in your customer's tenant:
The next action I advise is to look up the
principalIDin your error log in Entra, EnterpriseApp or AppReg.