Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Regular Visitor

Repeatedly asked for authentication: Analyses Services



I hope one of you can help me with a workaround so I don't have to repeatedly enter Oauth2 credentials when connecting to the Analysis Services database. Goal of the query is to retrieve the report views from the Usage Metrics Report-dataset in a list of workspaces. I am currently using a Power Automate flow to query the datasets and store the information in CSV-files, but I would like to do this via Power Query instead. Please note that I'm not an admin of the tenant, nor will I get these rights.


I have the following code:


(workspaceName as text) => 
    Source = AnalysisServices.Database(tokenAddress & workspaceName & "", "Usage Metrics Report", 
                'Report views'[UserId],
                'Report views'[ConsumptionMethod],
                'Report views'[CreationTime],
                'Report views'[Date],
                'Report views'[DistributionMethod],
                'Report views'[ReportId],
                'Report views'[OriginalConsumptionMethod]



I am being asked to authenticate for each workspace, even though it's the same account I use to make the connection and it's the same tenant. Since I already have 104 workspaces to monitor and additional workspaces will be added automatically, this will not be acceptable if I can't fix this.


Do you know of a way to authenticate only once with Oauth2 for all workspaces?

Super User
Super User

Never ceizes to amaze me to what lengths people go to circumvent Microsoft's rules. Very inventive.


Ask your tenant admin to share the audit logs with you instead.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors