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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jmartel
Frequent Visitor

Is there anyone familiar with: https://wabi-us-north-central-d-primary-redirect.analysis.windows.net

Hello !

Im taking a chance after searching hours on the Microsoft website and in the examples script.
Is there anyone familiar with: https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reportId/con....

I am looking to use that to fetch all reports in workspaces. --> Contact owner infos.

I was able to get that to works with 2 APIS
-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reported/" -Method Get

-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reportId/con..." -Method Get

The issue I am having is that I can only get the workspaces-reports that I am part of it. I do have a SPN with all api permission for PowerBi Service, with also Tenant.ReadAll but not success.

If anyone was able to get further with this? thanks!

1 ACCEPTED SOLUTION

Yes, all the admin commands api were not working with the SPN. Now I i did found that it finally works after i have done this:

DELETE all the API permission I had. From a Microsoft doc, I found that the app MUST NOT have any admin-consent required. With the api permissions I had, some were admin consent. All fixed now!

View solution in original post

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @jmartel 

According to your description, you want to  fetch all reports in workspaces . 

For your need , i think you need to use the Admin REST API to get all reports in workspaces.

For this API, you can refer to this :
Admin - Reports GetReportsAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

You can also use "Try it" to test in the browser:

vyueyunzhmsft_0-1682560486508.png

Also , you can get this request in PowerShell.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Yes, all the admin commands api were not working with the SPN. Now I i did found that it finally works after i have done this:

DELETE all the API permission I had. From a Microsoft doc, I found that the app MUST NOT have any admin-consent required. With the api permissions I had, some were admin consent. All fixed now!

Just a heads up.

 

The admin API does works good since April with the SPN as well. 

 

However, all the wabi api (no publick Microsoft api is available yet) are NOT working with the SPN.

 

 

I am looking to use that to fetch all reports in workspaces. --> Contact owner infos.

 

I was able to get that to works with 2 APIS (with my admin account)
-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reported/" -Method Get

-Invoke-PowerBIRestMethod -Verbose -Url "https://wabi-us-north-central-d-primary-redirect.analysis.windows.net/metadata/reports/$reportId/con..." -Method Get

The issue I am having is that I can only get the workspaces-reports that I am part of it. I do have a SPN with no api permission for PowerBi Service, as Microsoft doc suggest.

 

If anyone was able to get further with this? thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.