So currently I'm working on task, that will return all groups that user triggering the flow is member of.

I stuck on this:

enter image description here

My teammate gave me a hint, that this way is proper, but I need something more from inputs.

1 Answer 1


Create a power automate flow like this:

enter image description here

Uri used in HTTP request action is:


Replace <userEmail> with dynamic content from PowerApps (V2) trigger.

From Power apps, while running this flow, use formula like:


Replace FlowName with name of your flow.

  • One of the conditions this task is that the user have only to click the button. Users didn't have provide any informations like email or username. So this flow must be based on information about user before it triggers action
    – Yarensky
    Jul 22, 2022 at 13:39
  • And please, if ofc you can, tell me what is the function of initialize variable in this flow.
    – Yarensky
    Jul 22, 2022 at 13:48
  • 1
    User don't need to pass the user email manually. You can get the currently logged in users details using User() function in power apps. In my answer, we are passing currently logged in user's email (User().Email) to the flow when user runs the flow. You just need to add the formula (FlowName.Run(User().Email)) on OnSelect property of button. Replace FlowName with name of your flow. Jul 22, 2022 at 13:53
  • You can ignore the initialize variable in this flow. This action I have used for my requirements. Jul 22, 2022 at 13:54
  • 1
    You don't need userId in case you use this URI: _api/web/siteusers/getbyemail(<userEmail>)/groups. You only need the email address of user running the flow (which you are getting from Power apps). Jul 26, 2022 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.