cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TimCurwick
Frequent Visitor

Admin API not working

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

2 REPLIES 2
TimCurwick
Frequent Visitor

Re: Admin API not working

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

Re: Admin API not working

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

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors