Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Enduser
Regular Visitor

Repeatedly asked for authentication: Analyses Services

Hi,

 

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) => 
let
    Source = AnalysisServices.Database(tokenAddress & workspaceName & "", "Usage Metrics Report", 
        [Query="
            EVALUATE#(lf)
            SUMMARIZECOLUMNS (
                'Report views'[UserId],
                'Report views'[ConsumptionMethod],
                'Report views'[CreationTime],
                'Report views'[Date],
                'Report views'[DistributionMethod],
                'Report views'[ReportId],
                'Report views'[OriginalConsumptionMethod]
            )
        "]
    )
in
    Source

 

 

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?

1 REPLY 1
lbendlin
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

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.