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 / Copilot Studio / Who´s is running the a...
Copilot Studio
Answered

Who´s is running the action when calling a Power Automate flow?

(0) ShareShare
ReportReport
Posted on by 11

In my PVA I need to trigger a Power Automate which creates data in Dataverse. I want it shall be created under the triggering end user from Teams.

 

If a end user is using the bot through Teams, will the Power Automate know who is the calling user when performing an Dataverse action? (When we select Run as "User" on the Dataverse action)

 

Hope it´s clear! thx!

Categories:
I have the same question (0)
  • HenryJammes Profile Picture
    on at

    Hi @Kranis,

     

    The cloud flows triggered from Power Virtual Agents run in the context of the connection used for the cloud flow configuration (by default the one of the user who configured the flow), not in the context of the chatbot end-user.

     

    That said, Dataverse allows for impersonation using the Web API when passing a CallerObjectId parameter (unfortunately I don't believe the option is available in the standard Microsoft Dataverse Connector).

    So, with an HTTP request, you should be able to use the current user's Azure AD Object ID to make impersonated calls to the Web API: Impersonate another user using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Learn

     

    Henry

     

  • Kranis Profile Picture
    11 on at

    Thanks for a great explanation 😀

     

    Few follow-up questions:

     

    Kranis_0-1689161964565.png

    Can we change it to the context of the chatbot end-user? Any idea how?

     

    Kranis_1-1689162008206.png

    In my case, I also have a need to run the Office 365 Outlook Connector in the end-users context. As I understand, there is not really an OOB solution for this. Perhaps we can use the WebApi even for this?

  • Verified answer
    HenryJammes Profile Picture
    on at

    No, you can't change it to the context of the end-user.

     

    The best you can do, when the user is authenticated in PVA, is to use either user Azure AD Object ID or Access Token as a variable that you pass to Power Automate. Then in Power Automate, you need to work with connectors that can accept these to make delegated calls (and so run in the context of the end-user).

     

    Dataverse lets you do that, but you need to use the Web API through HTTP requests (either with the HTTP connector or the HTTP with Azure AD one)

     

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 198 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard