web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 5qXQ7Z4TsSn5eNdTQoMDKi
Power Apps - Building Power Apps
Unanswered

"RetrivePriviledgesForUser, The user with id *** has not been assigned any roles, they need a role with prvReadWorkflow priviledges"

Like (0) ShareShare
ReportReport
Posted on 18 Mar 2024 15:46:29 by 1,754 Super User 2024 Season 1

I have this flow which get called from canvas app inside a solution inside a Dev environment, the flow calls 2 child flows, as follow:-

 

johnjohnPter_0-1710771575823.png

 

so the flow does not have any connection, as follow:-

johnjohnPter_3-1710771871102.png

 

 

 

now when some internal users call this flow from power apps by clicking on a button which have this formula:-

 

 

 

'CreateApprovalItem(Elevated)'.Run(
 4064,
 "PPM-Admins-Test",
 "Work Order"
).response

 

 

 

 they get this error "RetrivePriviledgesForUser, The user with id *** has not been assigned any roles, they need a role with prvReadWorkflow priviledges", as follow:-

johnjohnPter_2-1710771718409.png

 

and all external users will get this error:-

johnjohnPter_1-1710771688506.png

 

any advice? now i have other work flow which get called from power apps and it is working for all internal and external users, and those flows have connections (unlike the flow which is raising errors), and i am running these flows on elevated privileges using a service account, as follow:-

 

johnjohnPter_4-1710771964267.png

 

so could the reason be that the workflow which is raising error , does not have any connection?

 

UPDATE. i added a test action to retrieve some SharePoint items inside the workflow, so the workflow get a connection reference to sharepoint and i set it to run under the service account, but still i am getting the same issue/error.

 

Thanks

 

 

 

I have the same question (0)
  • BhaskarDhone Profile Picture
    1,263 Super User 2025 Season 2 on 18 Mar 2024 at 19:12:17
    Re: "RetrivePriviledgesForUser, The user with id *** has not been assigned any roles, they need a role with prvReadWorkflow priviledges"

    User should have minimum "App Opener" role on the environment.

  • johnjohnPter Profile Picture
    1,754 Super User 2024 Season 1 on 18 Mar 2024 at 20:08:02
    Re: "RetrivePriviledgesForUser, The user with id *** has not been assigned any roles, they need a role with prvReadWorkflow priviledges"

    @BhaskarDhone but why this is working for other workflows? so i do not think it is related to roles. as if this is the case, then it will not work for any workflow, am i correct?

  • BhaskarDhone Profile Picture
    1,263 Super User 2025 Season 2 on 18 Mar 2024 at 20:20:00
    Re: "RetrivePriviledgesForUser, The user with id *** has not been assigned any roles, they need a role with prvReadWorkflow priviledges"

    I don't have an explanation for this. But you can give a try. I am sure it will work. 

    P.S. : This is based on problem faced before. Solution is suggested by Microsoft.

  • johnjohnPter Profile Picture
    1,754 Super User 2024 Season 1 on 18 Mar 2024 at 20:28:07
    Re: "RetrivePriviledgesForUser, The user with id *** has not been assigned any roles, they need a role with prvReadWorkflow priviledges"

    @BhaskarDhone so you mean i need to edit the roles for each user to have atleast "App Opener"? also for the external users, i am unable to add them to the environment, where i get that there is not a valid license, although the users have power apps license on their tenant..

    again those external users can call the other work flows from power apps without issue

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard
Loading complete