<?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 Connecting to Graph API through Odata feed - permission issues with some queries in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-Graph-API-through-Odata-feed-permission-issues/m-p/867433#M21662</link>
    <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to connect to the &lt;A href="https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0" target="_self"&gt;Microsoft graph API&lt;/A&gt; through an OData feed in Power BI. I understand that the OData support in this API is patchy with different commans and types of filters being supported on different endpoints, however, this seems to work for simple queries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that for some operaions that I know the API supports it gives me the error:&amp;nbsp;"Expression.Error: Access to the resource is forbidden."&lt;/P&gt;&lt;P&gt;The present instance of this problem is with the groups endpoint (&lt;A href="https://graph.microsoft.com/v1.0/groups" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/v1.0/groups&lt;/A&gt;). I can query the endpoint raw perfectly fine. However, I need to expand the members field for each group, and when I attempt to do this the above error occurs. I know I have sufficient permissions for this as I have successfully run this query through the &lt;A href="https://developer.microsoft.com/en-us/graph/graph-explorer" target="_self"&gt;graph explorer&lt;/A&gt; (Query: &lt;A href="https://graph.microsoft.com/v1.0/groups?$expand=members).&amp;nbsp;" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/v1.0/groups?$expand=members).&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can successfully expand other fields in the groups dataset in PowerBI, it is just members that causes this issue (as far as I have found).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know or have an idea of why this doesn't work from within PowerBI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2019 07:08:25 GMT</pubDate>
    <dc:creator>rarowston</dc:creator>
    <dc:date>2019-12-06T07:08:25Z</dc:date>
    <item>
      <title>Connecting to Graph API through Odata feed - permission issues with some queries</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-Graph-API-through-Odata-feed-permission-issues/m-p/867433#M21662</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to connect to the &lt;A href="https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0" target="_self"&gt;Microsoft graph API&lt;/A&gt; through an OData feed in Power BI. I understand that the OData support in this API is patchy with different commans and types of filters being supported on different endpoints, however, this seems to work for simple queries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that for some operaions that I know the API supports it gives me the error:&amp;nbsp;"Expression.Error: Access to the resource is forbidden."&lt;/P&gt;&lt;P&gt;The present instance of this problem is with the groups endpoint (&lt;A href="https://graph.microsoft.com/v1.0/groups" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/v1.0/groups&lt;/A&gt;). I can query the endpoint raw perfectly fine. However, I need to expand the members field for each group, and when I attempt to do this the above error occurs. I know I have sufficient permissions for this as I have successfully run this query through the &lt;A href="https://developer.microsoft.com/en-us/graph/graph-explorer" target="_self"&gt;graph explorer&lt;/A&gt; (Query: &lt;A href="https://graph.microsoft.com/v1.0/groups?$expand=members).&amp;nbsp;" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/v1.0/groups?$expand=members).&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can successfully expand other fields in the groups dataset in PowerBI, it is just members that causes this issue (as far as I have found).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know or have an idea of why this doesn't work from within PowerBI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 07:08:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-Graph-API-through-Odata-feed-permission-issues/m-p/867433#M21662</guid>
      <dc:creator>rarowston</dc:creator>
      <dc:date>2019-12-06T07:08:25Z</dc:date>
    </item>
  </channel>
</rss>

