Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
 
					
				
		
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?
Solved! Go to Solution.
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.
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.
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.
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
