Forum Discussion
Publish RDL with service principal via API makes datasource stop working
Deploying an RDL via the PowerBI API works but when deploying using a Service Principal, the datasource in the reports no longer works until the user uses the 'Take Over' button. Uploading manually the exact same report in the GUI as the user works as expected. What can be done about this? It's essential in automated deployment scenarios to upload using SPs and the reports then need to work for all users who have rights to the workspace and reports.
2 Replies
- AnonymousNot applicable
I can confirm that this does in fact work fine as documented, the problem was mine and not constructing the API calls correctly.
- v-robertq-msftCommunity Support
Hi, Anonymous
According to your description, I think you can refer to these links and check if they can be helpful:
https://dev.to/kenakamu/upload-rdl-file-s-to-power-bi-via-api-28h
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.