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 :
Copilot Studio - General
Unanswered

Invoking Power BI api with Copilot Studio bot using 'Authenticate with Microsoft' auth setup

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

  Problem/ Our requirement -

  • Enable a Copilot Studio bot to execute dynamic DAX queries against a Power BI dataset.

  • The query must execute under the identity of the end-user interacting with the bot. This is essential to enforce permissions defined directly on the Dataset (Semantic Model), as users do not have access rights to the containing Workspace.

  • The bot's authentication configuration is locked to the "Authenticate with Microsoft" (integrated SSO) mode and cannot be changed.

Options

Using Power BI Connector in power automate:

We cannot use this approach because the Power BI connector's action requires the flow author to specify a Workspace in its parameters. When the action attempts to execute as the end-user, the very first step the Power BI service performs is to verify that the user has permissions to access that specified Workspace. We can only give dataset level permissions to user; this won't work for us.

Using Power BI APIs - we can have only dataset level permissions to execute DAX query; this flow works fine outside copilot studio.

But our blocker is with copilot studio, since we must use only "Authenticate with Microsoft" auth option in copilot studio, we cannot setup OBO auth and get user’s access token that can be used with app registration in power bi API’s http request.

Can anyone suggest, how can we setup obo auth or something similar so we can call Power BI api inside power automate flow using "Authenticate with Microsoft" auth option in copilot studio?

Or suggest any other approach where we can execute DAX query on powerbi datasets using user's permissions in copilot studio?

Categories:
I have the same question (0)
  • venturemavenwill Profile Picture
    931 Super User 2025 Season 2 on at
    Invoking Power BI api with Copilot Studio bot using 'Authenticate with Microsoft' auth setup
    Is creating a custom API an option? 
     
    Just digging through Microsoft's documentation "Authenticate with Microsoft" supports custom scope
     
     
    so you could theoretically make a custom API that gets a token that is valid for the scope of a custom API. Your copilot agent should then call a flow that passes this token to the Custom API, which will then use it to call the PowerBI API. 
  • suyash Profile Picture
    Microsoft Employee on at
    Invoking Power BI api with Copilot Studio bot using 'Authenticate with Microsoft' auth setup
    Issues with creating custom api -
     
    Even if we setup our api, we have to pass access token to it, problem is getting it in Copilot Studio and passing to our flow or api.
  • The Dynamic Power Disciple Profile Picture
    2 on at
    Invoking Power BI api with Copilot Studio bot using 'Authenticate with Microsoft' auth setup
    What you could do is to create a Fabric Data Agent (still in preview) in Fabric and then invoke that agent in your Copilot Studio agent via the A-to-A protocol. That way you could use natural language to execute DAX-queries against like a semantic model.

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…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 378 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 132

Last 30 days Overall leaderboard