Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a service principal which has viewer access to a single workspace. In the workspace, one of my reports uses a dataset from another workspace the service principal doesn't have access to. I'm able to successfully query the report from the reports in group api (https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-reports-in-group)
But when using the get pages in group api (https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-pages-in-group)I get a 401 unauthorized error.
Is there any documentation for this behavior? Why do the report pages return a 401 unauthorized in this case but not reports? I believe this is a bug and this seems to be how to report bugs, but let me know if there's another way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @brittaf2002
You mean, you don't have access to a report from another workspace, but you can get this report through the API, but when you use the API to get the page of this report, there is a 401 error reported, right?
I compared the two APIs , and the requirements for permissions are the same, so I can't see a specific difference just from the documentation. Can you provide the content of your API and the results returned?
Best Regards,
Community Support Team _ Ailsa Tao