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 / A new power app to pro...
Power Apps
Answered

A new power app to production

(0) ShareShare
ReportReport
Posted on by 21
Hello,
 
I'm quite new to the whole power platform in general, and after some months work, I was finally able to deploy my solution to production to implement it in our organization.
 
The power app should be accessible for select people. So I have pressed the 'share' button in power apps, and picked the people who needs to have access to the app.
 
Everything seems to be working until they try to use the app. For context, the apps purpose is sending an evaluation form to the selected project manager, and starting three flows in power automate that do different things.
 
The problem is, that even though I have shared the app with the selected people, they still can't use it, giving me an error which is as follows:
 
XXX.Run failed: {"error":{"code":"0x80040220","message":"Principal user (Id=xxx, type=8, roleCount=0, privilegeCount=0, accessMode='0 Read-Write', AADObjectId='xxx', MetadataCachePrivilegesCount=4578, businessUnitId=xxx), is missing prvReadWorkflow privilege (Id=xxxx) on OTC=4703 for entity 'workflow' (LocalizedName='Process'). context.Caller=...
(The X's are for privacy. They replaced the original id's)
 
I feel like I have searched everywhere for a solution, but without sucess. I can't imagine that I need to share the flows with the people as well, seeing as the connection references are linked to the solution, and to my account. Any help would be welcomed gladly :)
 
Best,
Mikkel
 
PS. The end result is a power app web part imbedded in a sharepoint site for easy access, but I have tested the app as a web part, and seperately from the users web.powerapps.com site, and nothing works
 
I have the same question (1)
  • MH-05110755-0 Profile Picture
    21 on at
    Hi Pstork1,
     
    That makes a lot of sense! Didn't even realise that it was a setting. I'll have to go through the rest of my instant flows and change this. Thanks for the help!
     
    Best
  • Verified answer
    Pstork1 Profile Picture
    68,886 Most Valuable Professional on at
    Did you set the RunOnly user setting on the flows in the Solution to use a specific connection?  If you didn't then the flows will try to run in the security context of the user who triggers them from the app. That's why you are getting the error.  This screenshot shows the Run Only user setting in the Details of the flow in the solution. By default it will be set to "Provided by run-only user".  You need to change that to a specific connection.  That will let the app users run the flow in the security context of the maker of the flow so you don't have to share the flow.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 459

#2
WarrenBelz Profile Picture

WarrenBelz 383 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 337 Super User 2025 Season 2

Last 30 days Overall leaderboard