Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
We have a datasource that is of type "SharePointList".
According to the documentation https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/update-datasource, we are updating the OAuth2 credentials with an access token. However we always get a 400 error code. We also do this with an Azure SQL datasource and this work fine for that datasource type.
The documentation says "Set the OAuth 2.0 token audience correctly, according to the data source type.".
Can you specify which scope is required by the datasource type "SharePointList" so we can retrieve an appropriate access token that can be used to connect?
We tried:
Thank you!
Hello @Anonymous,
Can you check with your teams what is the scope required for getting an access token that we can set in the OAuth2 credentials for the SharePointList type datasource type ? Graph ? Others ?
Thank you!
Hi @Anonymous ,
As far as I know, if your data source is SharePoint, I think you can select connection type as SharePoint directly when you configure data source for gateway in Power BI Service.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
Thank you for your answer, but actually this was not my question as I was speaking about SharePoint Online (not on-premises) and using the APIs.
What is the scope required for getting an access token that we can set in the OAuth2 credentials of the SharePointList type datasource type ? Graph ? Others ?
Thank you.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |