Forum Discussion
Get the Power BI Tenant ID via Power Query
Is there a way for Power Query to read the Power BI Tenant ID for the Power BI Tenant that the Power Query commands are running in?
Run this API call Admin - Get Capacities As Admin - REST API (Power BI Power BI REST APIs) | Microsoft Docs
It also includes the tenant IDs.
Out of curiosity - how many tenants do you have? Usually the tenant ID is a well known constant.
2 Replies
- lbendlinSuper User
Run this API call Admin - Get Capacities As Admin - REST API (Power BI Power BI REST APIs) | Microsoft Docs
It also includes the tenant IDs.
Out of curiosity - how many tenants do you have? Usually the tenant ID is a well known constant.
- AnonymousNot applicable
Thanks for the suggestion. I had not thought about that approach.
I have found a way to achieve my actual end goal, so I don't need this exact data at this time.
It would be nice to be able to know what Dataset ID, Workspace ID, and/or Tenant ID, etc. that the Power Query steps are running in, without having to grant API access or provide the necessary API credentials.