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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
henrituol
Advocate I
Advocate I

Service principals can access admin APIs used for updates, or can they?

There seems to be a new option in Admin Portal -> Tenant settings -> Admin API Settings called "Service principals can access admin APIs used for updates". The link in the Learn More, however, takes to the same place as the Learn more of "Service principals can access read-only admin APIs".

I guess that these "APIs for updates" are other than read-only GETs, for example, PATCH Admin - Groups UpdateGroupAsAdmin or POST Admin - Groups AddUserAsAdmin. For some reason, however, I get a 401 error with these operations although I have enabled a service principal for this new option. The same service principal works fine for previously enabled read-only APIs.

Has anyone successfully utilized these admin update APIs with a service principal?  

henrituol_0-1722444895916.pnghenrituol_1-1722444970553.png

 

1 ACCEPTED SOLUTION

Nice to know that I'm not the only one in this mess. I managed to get these responses to my support ticket: 

 

"We have checked with our Product team, and they confirmed that the Service principals can access admin APIs used for updates' option is still in the preview feature."

 

"All the admin API's will work with this new option and it will take 2 or 3 upcoming upgrades to come into effect."

 

Soo, probably the next year, right?

 

It would've been nice if there were a link to a documentation or something that said that this option isn't truly available yet.

View solution in original post

5 REPLIES 5
Michaeljel
New Member

Facing same issue

Nice to know that I'm not the only one in this mess. I managed to get these responses to my support ticket: 

 

"We have checked with our Product team, and they confirmed that the Service principals can access admin APIs used for updates' option is still in the preview feature."

 

"All the admin API's will work with this new option and it will take 2 or 3 upcoming upgrades to come into effect."

 

Soo, probably the next year, right?

 

It would've been nice if there were a link to a documentation or something that said that this option isn't truly available yet.

henrituol
Advocate I
Advocate I

Seems to be a fairly new option. This option is mentioned in the documentation https://learn.microsoft.com/en-us/fabric/admin/tenant-settings-index#admin-api-settings and according to the Github commit, it has been added 8th of July. I wonder if anyone has succesfully used a Service Principal to use any update-related Admin APIs.

v-rzhou-msft
Community Support
Community Support

Hi @henrituol ,


To enable service principal authentication for Power BI read-only APIs, follow the steps in below offical blog:

Enable service principal authentication for read-only admin APIs - Microsoft Fabric | Microsoft Lear...

Here are the support api: Support Apis

 

Best Regards,
Rico Zhou

 

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

 

Read-only APIs work just fine. I'm talking about the new option "admin APIs used for updates".

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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