Forum Discussion
DavidPi
3 years agoAdvocate II
API - Update Datasources In Group for Paginated Reports - Unauthorized
Hello, I try to update RDL report data source via API (using service principal). { "updateDetails": [ { "datasourceName": "JIRADB", "connectionDetails": { "server": "SQLBIP1DP1", "datab...
- 3 years ago
I found the solution - You first need to call take over API - Reports - Take Over In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn. Then You can call API to change data source.
Anonymous
3 years agoNot applicable
Hi DavidPi,
AFAIK, update dataset should work for power bi reports. If you are work with RDL files, please try to use the update data source API if helps:
Reports - Update Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Regards,
Xiaoxin Sheng
DavidPi
3 years agoAdvocate II
Yes, I use this API, but receive message - Update datasource JIRADB is unauthorized.
I do not know which permision I should have more. In Doc I see -
- The user must be the data source owner
What does this mean? How to set owner of data source in RDL? I am confused.