<?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 Def all_workshop in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Def-all-workshop/m-p/3246699#M42773</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;Can someone help me with the following code?&lt;BR /&gt;I want to show a list of the work areas of a powerbi user. At the moment this code simply logs me in with a user external to O365 (it is a user of a mysql database) but I would like to test the code and manually pass a real O365 user&lt;BR /&gt;I have two doubts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How can I pass the username manually?&lt;/LI&gt;&lt;LI&gt;How do I show the results on another page?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def all_workshop(app,session):
    url='https://api.powerbi.com/v1.0/myorg/groups'
    api_response = requests.get(url, headers=get_request_header(app,session))
    if api_response.status_code != 200:
        abort(api_response.status_code, description=f'Error while retrieving Embed URL\n{api_response.reason}:\t{api_response.text}\nRequestId:\t{api_response.headers.get("RequestId")}')
    api_response = json.loads(api_response.text)
    api_response['value']
    return (api_response['value'])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 22 May 2023 07:16:21 GMT</pubDate>
    <dc:creator>apenaranda</dc:creator>
    <dc:date>2023-05-22T07:16:21Z</dc:date>
    <item>
      <title>Def all_workshop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Def-all-workshop/m-p/3246699#M42773</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Can someone help me with the following code?&lt;BR /&gt;I want to show a list of the work areas of a powerbi user. At the moment this code simply logs me in with a user external to O365 (it is a user of a mysql database) but I would like to test the code and manually pass a real O365 user&lt;BR /&gt;I have two doubts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How can I pass the username manually?&lt;/LI&gt;&lt;LI&gt;How do I show the results on another page?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def all_workshop(app,session):
    url='https://api.powerbi.com/v1.0/myorg/groups'
    api_response = requests.get(url, headers=get_request_header(app,session))
    if api_response.status_code != 200:
        abort(api_response.status_code, description=f'Error while retrieving Embed URL\n{api_response.reason}:\t{api_response.text}\nRequestId:\t{api_response.headers.get("RequestId")}')
    api_response = json.loads(api_response.text)
    api_response['value']
    return (api_response['value'])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 May 2023 07:16:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Def-all-workshop/m-p/3246699#M42773</guid>
      <dc:creator>apenaranda</dc:creator>
      <dc:date>2023-05-22T07:16:21Z</dc:date>
    </item>
  </channel>
</rss>

