Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ++MD2lq1pz0cUWEcHip4qo
Copilot Studio - General
Unanswered

Copilot Bot - Power Automate Flow as an Action - User Connections

Like (0) ShareShare
ReportReport
Posted on 24 Apr 2024 14:45:35 by 4

Hi I am building a Copilot bot but was wondering if it's possible to have the user that initiates the bot be used as the user that establishes the connection in a power automate flow that is called as an action in the bot's Topics.

 

What is happening right now is that regardless of what user initiates a bot conversation, the flows that are called in the bot under the topics all get processed under a specific user that created the flows and established those connections.

 

Is there any way to go around this?

  • VarianWryn Profile Picture
    4 on 24 Apr 2024 at 17:34:26
    Re: Copilot Bot - Power Automate Flow as an Action - User Connections

    I appreciate your responses! I am using Authenticate with Microsoft: Entra ID authentication in Teams and Power Apps.

     

    And for right now it is deployed via Teams as an app.

  • Pstork1 Profile Picture
    66,093 Most Valuable Professional on 24 Apr 2024 at 16:01:23
    Re: Copilot Bot - Power Automate Flow as an Action - User Connections

    That may be a side effect of the Dynamics F&O connector. What Authentication mechanism is the Bot set to use and where are you deploying it? Website, Teams, etc.

  • VarianWryn Profile Picture
    4 on 24 Apr 2024 at 15:08:09
    Re: Copilot Bot - Power Automate Flow as an Action - User Connections

    I am calling the flow as a Call an Action node on the bot in the Topic.

     

    The flow is fairly simple:

    1. When PVA calls a flow

    2. Get a record (Dynamics Finance and Operations Connector) - This looks for specific data in the system and returns the values back to the chat conversation. This is the part that is using the connection that was set-up when creating the flow and this is where if possible I would like to have the flow run using the user that initiated the conversation with the bot.

    3. Return values to PVA

     

  • Pstork1 Profile Picture
    66,093 Most Valuable Professional on 24 Apr 2024 at 14:52:11
    Re: Copilot Bot - Power Automate Flow as an Action - User Connections

    How are you calling the flow from the bot? Normally that action uses a manual trigger which would then use the users connection. Which connectors in the flow are using the makers connection? Can you provide more specifics?

     

    Another option is presented in this article. https://poszytek.eu/en/microsoft-en/office-365-en/pva-en/pva-series-user-context-in-power-virtual-agent/ 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,786 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard