<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Oauth2 scope required for SharePoint lists? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3360231#M43695</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a datasource that is of type "SharePointList".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/update-datasource" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/update-datasource&lt;/A&gt;, 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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation says "Set the OAuth 2.0 token audience correctly, according to the data source type.".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried:&lt;/P&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://graph.microsoft.com" target="_blank"&gt;https://graph.microsoft.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://microsoft.sharepoint-df.com" target="_blank"&gt;https://microsoft.sharepoint-df.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 17:53:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-01T17:53:06Z</dc:date>
    <item>
      <title>Oauth2 scope required for SharePoint lists?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3360231#M43695</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a datasource that is of type "SharePointList".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/update-datasource" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/update-datasource&lt;/A&gt;, 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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation says "Set the OAuth 2.0 token audience correctly, according to the data source type.".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried:&lt;/P&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://graph.microsoft.com" target="_blank"&gt;https://graph.microsoft.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://microsoft.sharepoint-df.com" target="_blank"&gt;https://microsoft.sharepoint-df.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3360231#M43695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-01T17:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 scope required for SharePoint lists?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3363178#M43714</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_1-1691048496274.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/950610iD21BA263158F0DB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_1-1691048496274.png" alt="vrzhoumsft_1-1691048496274.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3363178#M43714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T07:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 scope required for SharePoint lists?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3370376#M43799</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 13:44:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3370376#M43799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-08T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 scope required for SharePoint lists?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3398739#M44091</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you check&amp;nbsp;with your teams w&lt;SPAN&gt;hat 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 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:56:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Oauth2-scope-required-for-SharePoint-lists/m-p/3398739#M44091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-25T08:56:43Z</dc:date>
    </item>
  </channel>
</rss>

