Forum Discussion
Using Service Principal for REST API / Data Refresh
- 4 years ago
I was able to get this to work after removing the restrictions on the security group from the tenant settings
these are my settings now
- tenant : api enabled for service principal, no restrictions on security group
- SP added to workspace as administrator (directly , not via a group)
Hi akarkal,
Account to your description, it seems like you missed adding the security group that you configure with the service principal as the member of power bi embedded group workspace so that the rest API can't recognize the corresponding authentication.
Please take a look at the following link to know more about these operations:
Regards,
Xiaoxin Sheng
I was able to get this to work after removing the restrictions on the security group from the tenant settings
these are my settings now
- tenant : api enabled for service principal, no restrictions on security group
- SP added to workspace as administrator (directly , not via a group)
- Anonymous4 years agoNot applicable
Hi akarkal,
I'm glad to hear you found and share the workaround to resolve the issue. I think they may help if others faced a similar scenario.🙂
Regards,Xiaoxin Sheng