Forum Discussion

DanrleiAlves's avatar
DanrleiAlves
New Member
1 year ago
Solved

Getting DataSource Metadata from datasourceId

Hi all,  I want to get datasource details (database name, table name) from the datasoureceID, gatewayID or datasourceuniqueID. I have access to the admin APIs, but couldnt figure out a way to g...
  • v-lgarikapat's avatar
    v-lgarikapat
    1 year ago

    Hi DanrleiAlves ,

    Thank you for sharing the error screenshot and for the detailed explanation.

    Could you please try the following troubleshooting steps

     

    Start by checking your gateway permissions. In the Power BI Service, go to Manage Gateways, find the relevant gateway, and make sure your account or service principal is listed with Admin or Manage access under the Users tab for that datasource. Next, check that your token includes the necessary scopes like Dataset.Read.All and Gateway.Read.All you may also need Tenant.Read.All for broader access. If you're using a service principal, ensure it has been granted access in the Admin Portal. Finally, to confirm the datasource ID, use the API call GET /gateways/{gatewayId}/datasources to list all datasources connected to the gateway

    Troubleshoot gateways - Power BI | Microsoft Learn

    We truly appreciate your continued engagement and thank you for being an active and valued member of the community.

    If you're still experiencing any challenges, please don’t hesitate to reach out  we’d be more than happy to assist you further.

    We look forward to hearing from you.

    Best regards,
    Lakshmi