<?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 Re: REST API Permissions issue for Admin part of API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-Permissions-issue-for-Admin-part-of-API/m-p/2208845#M33162</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277891" data-lia-user-login="RicFischer" class="lia-mention lia-mention-user"&gt;RicFischer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;From this error code 401, it seems that the authentication information provided is incorrect causing the API to fail to run. First, check to see if the account which you used to run Admin Rest API has the following privileges:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Also, please review the content in the following links. Hope they can help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#permission-typesv" target="_self"&gt;&lt;STRONG&gt;Permission types&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-troubleshoot#api-call-returning-401" target="_self"&gt;API call returning 401&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 07:15:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-26T07:15:37Z</dc:date>
    <item>
      <title>REST API Permissions issue for Admin part of API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-Permissions-issue-for-Admin-part-of-API/m-p/2204259#M33088</link>
      <description>&lt;P&gt;I'm using the Power BI Python library by Alex Reed (&lt;A href="https://github.com/areed1192/power-bi-python-api" target="_blank" rel="noopener"&gt;areed1192/power-bi-python-api: The Unofficial Python API wrapper for the Microsoft Power BI REST API. (github.com)&lt;/A&gt;). I added my own portion for the Admin part of the REST API. It currently only has the Get Reports as Admin function in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got that part working. But, I appear to be having a permissions issue. The response I'm getting back is a 401. The logging feature in Mr. Reed's library is reporting this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-11-22 16:29:55,812|session.py|URL: https://api.powerbi.com/v1.0/myorg/admin/reports
2021-11-22 16:29:56,163|session.py|{
    "error_code": 401,
    "response_url": "https://api.powerbi.com/v1.0/myorg/admin/reports",
    "response_body": "",
    "response_request": {
        "Authorization": "Bearer XXXXXXX",
        "Content-Type": "application/json",
        "Content-Length": "2"
    },
    "response_method": "GET"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The permissions for my app are here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody think of what else I need to check? I feel like I'm so close.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 18:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-Permissions-issue-for-Admin-part-of-API/m-p/2204259#M33088</guid>
      <dc:creator>RicFischer</dc:creator>
      <dc:date>2021-11-23T18:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Permissions issue for Admin part of API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-Permissions-issue-for-Admin-part-of-API/m-p/2208845#M33162</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277891" data-lia-user-login="RicFischer" class="lia-mention lia-mention-user"&gt;RicFischer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;From this error code 401, it seems that the authentication information provided is incorrect causing the API to fail to run. First, check to see if the account which you used to run Admin Rest API has the following privileges:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Also, please review the content in the following links. Hope they can help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#permission-typesv" target="_self"&gt;&lt;STRONG&gt;Permission types&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-troubleshoot#api-call-returning-401" target="_self"&gt;API call returning 401&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 07:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-Permissions-issue-for-Admin-part-of-API/m-p/2208845#M33162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-26T07:15:37Z</dc:date>
    </item>
  </channel>
</rss>

