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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
AUaero
Responsive Resident
Responsive Resident

DMV against XMLA endpoint - user does not have permission to call discovery method

Hi,
I'm playing around with the DMV views in DAX Studio to query data about my models in a Premium workspace using the XMLA endpoint.  I can run most of the queries successfully, but when I try to run the following query I get an error:

select * from $SYSTEM.DISCOVER_DB_CONNECTIONS

DAX Studio returns an error saying "user does not have permission to call the Discover method" in spite of the fact that I am an admin in the workspace I am connecting to.  Is there a limitation here that I don't understand?

 

AUaero_0-1668698241484.png

 

Thanks!

4 REPLIES 4
waltheed
Impactful Individual
Impactful Individual

In this article (about DMVs) it says that:

"For Power BI Premium semantic models, DMVs for querying through the XMLA endpoint are limited to those that require database admin permissions. Some DMVs are not supported because they require Analysis Services server admin permissions."
Apparently the $SYSTEM.DISCOVER_... DMVs are not supported. 
The other types ($SYSTEM.TMSCHEMA_..., $SYSTEM.DMSCHEMA_..., $SYSTEM.MDSCHEMA_...) do work. 

 

Cheers, Edgar Walther
ITsmart BI and Analytics consultant
Martin_inndx
Regular Visitor

Hi. I'm getting the same error if I run this query from SQL Management Studio: 

 SELECT
[DIMENSION_NAME] as [SemPyDimensionName],
[TABLE_ID]       as [SemPyTableExpr],
[USED_SIZE]      as [SemPyUsedSize],
[SEGMENT_NUMBER] as [SemPySegmentNumber]
FROM
$SYSTEM.DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS

I also get the error when I do this in a Fabric notebook:

import sempy.fabric as fabric
all_columns = fabric.list_columns(workspace="prod-xxx-ws", dataset="prodxxxlakehouse", 
extended=True)
trialuser290923
New Member

I'm getting the same error. Is the issue resolved?
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @AUaero - it did not work for me either.  Could you please ask this question in the DaxStudio GitHub instead please.  Issues · DaxStudio/DaxStudio (github.com)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors