Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Has anyone had any success updating the Data source credentials via API when the Data Source is a SharePoint site? I have a Power BI Report (pbix) which is added to a workspace via the API but the refresh errors out because the credentials have to be re-added. I would like to update the OAuth credentials via the API. Is that possible? Thanks.
Solved! Go to Solution.
Hi @tzavertnik,
You can refer to the following link to use 'account/password' or 'client/secret id' to get an access token for rest API usages:
Solved: Pull data from a REST API Authentication - Microsoft Power BI Community
In addition, you can also try to create a custom data connector to package the rest API and corresponding verify steps in it:
Start developing custom connectors for Power Query - Power Query | Microsoft Docs
Regards,
Xiaoxin Sheng
Hi @tzavertnik,
You can refer to the following link to use 'account/password' or 'client/secret id' to get an access token for rest API usages:
Solved: Pull data from a REST API Authentication - Microsoft Power BI Community
In addition, you can also try to create a custom data connector to package the rest API and corresponding verify steps in it:
Start developing custom connectors for Power Query - Power Query | Microsoft Docs
Regards,
Xiaoxin Sheng
I'm sorry, but how does this solve his/her problem?!
We also have the need to set the credentials for Sharepoint Online via the API, and until now had no luck. Can anyone else help?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 |