Forum Discussion

henrituol's avatar
henrituol
Advocate II
2 years ago
Solved

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's avatar
    henrituol
    2 years ago

    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.

7 Replies

    • henrituol's avatar
      henrituol
      Advocate II

      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.

      • VojtaT's avatar
        VojtaT
        New Member

        One year later and doing POST with Service Principal still responds with 401. 

    • henrituol's avatar
      henrituol
      Advocate II

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