Forum Discussion

Ranjini_Mana's avatar
Ranjini_Mana
Regular Visitor
3 years ago

Power BI Rest API call from Postman

Hi,

 

I am new to power BI and I have a requirement to reat power BI application. I have followed the below steps to acheive this.

1. Registred an web-application with all permissions

2. Created a security group in AAD and assigend to the application.

3. Created a wokspace in power BI and generated data set.

4. Set the access to the security group created.

5. In power PI tenant added allow service principals to access and assigned the security group.

 

I could succesfully create a token and when i pass it to the /dataset/{datasetid} end point it gives me a "ServicePrincipalIsNotAllowedByTenantAdminSwitch" error. 

 

what am i missing here. Thank you !

5 Replies

  • Exactly what it says in the error message - your Power BI Tenant Admin has disabled that option on the tenant level.

    • Ranjini_Mana's avatar
      Ranjini_Mana
      Regular Visitor

      lbendlin : Where exactly can I see the setting.

       

      I have enabled allow service principal to use powerBI in the Developer settings.

      • lbendlin's avatar
        lbendlin
        Super User

        Did you add your service principal to one of the two groups?