Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
A month or two ago, I successfully used several of the Admin API calls.
Recently, I have not been able to get the API to work at all. I am using the same PowerShell code, the same credential, and the same registered application as before.
The credential is in the Power BI Adminsitrator role. The registered application has Bower BI Tenant.Read.All and Tenant.ReadWrite.All rights.
This credential and registered application are still working normally with other Power BI API's.
The error returned from the API is 401 Unauthorized, with no additional information.
What might I be doing wrong?
Has something changed with this API, Is it working for everyone else?
Have the documented rights and permission scope changed? https://docs.microsoft.com/en-us/rest/api/power-bi/admin
Thanks,
Tim Curwick
I've been experience similar stuff when trying to use the PowerShell APIs...stuff works one day and not the next. I know Microsoft is rolling out a lot in the PBI service right now...but as a newbie PowerShell person, makes it really hard to figure out if my code is hosed up or if the service isn't behaving nicely....
Scott
Update:
403 is actually the error I was receiving. (401 was when I had the syntax wrong for one set of tests.)
I worked with Microsoft yesterday to troubleshoot. No issues were found at either end.
Today it works. No idea why.
If I learn anything more, I'll post additional updates.
Thanks,
Tim Curwick
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |