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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
DanrleiAlves
New Member

PBI Admin Datasource API error - DMTS_UserNotFoundInADGraphError

Hi everyone,

I'm running into an issue when trying to use the Power BI Admin API to retrieve datasource information for a specific dataset using its datasetId. Here's what I'm trying to do:

However, when I call the API, I get the following error: 

DMTS_UserNotFoundInADGraphError (image below)
DanrleiAlves_0-1753169259178.png

 

Has anyone seen this error before?

Any suggestions on how to get around this error or alternative ways to retrieve datasource details (especially the Synapse database and view/table name) would be greatly appreciated.

Thanks in advance!

2 ACCEPTED SOLUTIONS
v-hjannapu
Community Support
Community Support

Hi @DanrleiAlves  ,

Thank you  for reaching out to the Microsoft fabric community forum.

Make sure you have these permissions

  • The user must be a Fabric administrator or authenticate using a service principal.

Also try to follow this article Datasets - Get Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

and try to get the data source by following the provided HTTP code .

 

Make sure you have these permissions

Dataset.ReadWrite.All or Dataset.Read.All


Hope this helps if you have any queries we are  happy to assist you further.
Regards,
Harshitha.

View solution in original post

Jai-Rathinavel
Super User
Super User

Hi @DanrleiAlves  

1. Check if the dataset is in deleted state - powerbi - Power BI REST Admin - Datasets GetDatasourcesAsAdmin return DMTS_UserNotFoundInADGraphErro...

2. If you have access to Fabric Workspace you can try Sempy python library (fabric.list_datasources()). Even if it doesn't work.

3. Open the semantic model on Tabular Editor and under Tables->Partitions->Expressions you can see the Power Query used to build that table.

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

5 REPLIES 5
Jai-Rathinavel
Super User
Super User

Hi @DanrleiAlves  

1. Check if the dataset is in deleted state - powerbi - Power BI REST Admin - Datasets GetDatasourcesAsAdmin return DMTS_UserNotFoundInADGraphErro...

2. If you have access to Fabric Workspace you can try Sempy python library (fabric.list_datasources()). Even if it doesn't work.

3. Open the semantic model on Tabular Editor and under Tables->Partitions->Expressions you can see the Power Query used to build that table.

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





v-hjannapu
Community Support
Community Support

Hi @DanrleiAlves  ,

Thank you  for reaching out to the Microsoft fabric community forum.

Make sure you have these permissions

  • The user must be a Fabric administrator or authenticate using a service principal.

Also try to follow this article Datasets - Get Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

and try to get the data source by following the provided HTTP code .

 

Make sure you have these permissions

Dataset.ReadWrite.All or Dataset.Read.All


Hope this helps if you have any queries we are  happy to assist you further.
Regards,
Harshitha.

Hi @DanrleiAlves.,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.

Regards,
Harshitha.

Hi @DanrleiAlves,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We are always here to support you.


Regards,
Harshitha.

Hi @DanrleiAlves,
I wanted to follow up and see if you have had a chance to review the information that was shared. If you have any additional questions or need further clarification, please don’t hesitate to reach out. I am here to assist with any concerns you might have.

Regards,
Harshitha.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.