<?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: Why would two users throw errors with the API? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3339715#M43518</link>
    <description>&lt;P&gt;how is their email address format different from everybody else's ?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 00:55:00 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-07-20T00:55:00Z</dc:date>
    <item>
      <title>Why would two users throw errors with the API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3336422#M43499</link>
      <description>&lt;P&gt;I've been using Powershell to call the API to get lists of reports users have access to. I'm using the UPN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod -url &lt;A href="https://api.powerbi.com/v1.0/myorg/admin/users/email@domain.com/artifactAccess" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/admin/users/email@domain.com/artifactAccess&lt;/A&gt; -Method GET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine for 99% of users (I'm iterating over the list of people with licenses). But there's two people (who definitely have licenses and access to reports) who throw errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error in Powershell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-PowerBIRestMethod : One or more errors occurred.&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ Invoke-PowerBIRestMethod -url &lt;A href="https://api.powerbi.com/v1.0/myorg/admi" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/admi&lt;/A&gt; ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], Ag&lt;BR /&gt;gregateException&lt;BR /&gt;+ FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod&lt;BR /&gt;&lt;BR /&gt;Invoke-PowerBIRestMethod : Encountered errors when invoking the command: {&lt;BR /&gt;"code": "InvalidRequest",&lt;BR /&gt;"message": "Invalid parameter value"&lt;BR /&gt;}&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ Invoke-PowerBIRestMethod -url &lt;A href="https://api.powerbi.com/v1.0/myorg/admi" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/admi&lt;/A&gt; ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], Ex&lt;BR /&gt;ception&lt;BR /&gt;+ FullyQualifiedErrorId : Encountered errors when invoking the command: {&lt;BR /&gt;"code": "InvalidRequest",&lt;BR /&gt;"message": "Invalid parameter value"&lt;BR /&gt;},Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 12:12:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3336422#M43499</guid>
      <dc:creator>snow84</dc:creator>
      <dc:date>2023-07-18T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why would two users throw errors with the API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3339715#M43518</link>
      <description>&lt;P&gt;how is their email address format different from everybody else's ?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 00:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3339715#M43518</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-20T00:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why would two users throw errors with the API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3340797#M43526</link>
      <description>&lt;P&gt;Basically everyone, including the two of them, is firstinitiallastname@domain.com&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 12:16:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3340797#M43526</guid>
      <dc:creator>snow84</dc:creator>
      <dc:date>2023-07-20T12:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why would two users throw errors with the API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3340865#M43527</link>
      <description>&lt;P&gt;is that their primary email (the one in caps) or one of the aliases?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 12:48:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3340865#M43527</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-20T12:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why would two users throw errors with the API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3340973#M43528</link>
      <description>&lt;P&gt;How would I know if it was an alias? I'm looking in the microsoft 365 admin center and they're listed as having the license under the account&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:28:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3340973#M43528</guid>
      <dc:creator>snow84</dc:creator>
      <dc:date>2023-07-20T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why would two users throw errors with the API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3341011#M43529</link>
      <description>&lt;P&gt;For example in Outlook you can examine the user properties. The "Email addresses"&amp;nbsp; tab lists all aliases. The one in caps is the primary.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:41:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Why-would-two-users-throw-errors-with-the-API/m-p/3341011#M43529</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-20T13:41:42Z</dc:date>
    </item>
  </channel>
</rss>

