Forum Discussion

jmartel's avatar
jmartel
Frequent Visitor
3 years ago
Solved

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/contacts.

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/contacts" -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!

  • jmartel's avatar
    jmartel
    3 years ago

    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!

3 Replies