<?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: Getting error Need admin approval in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Getting-error-Need-admin-approval/m-p/1692932#M28117</link>
    <description>&lt;P&gt;I am getting the same issue even though I followed the exact steps with their sample application&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-your-organization?tabs=react" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-your-organization?tabs=react&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 19:31:05 GMT</pubDate>
    <dc:creator>igajera</dc:creator>
    <dc:date>2021-02-26T19:31:05Z</dc:date>
    <item>
      <title>Getting error Need admin approval</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-error-Need-admin-approval/m-p/715677#M19665</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract dataset refresh history for the dataset. I am using the RESR API in power shell script. I registared native app and provided all the permissions.&lt;/P&gt;&lt;P&gt;created below power shell script.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$clientId = "NativeAppClientId"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# End Parameters =======================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# Calls the Active Directory Authentication Library (ADAL) to authenticate against AAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;function GetAuthToken&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if(-not (Get-Module AzureRm.Profile)) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Import-Module AzureRm.Profile&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;$redirectUri = "urn:ietf:wg:oauth:2.0:oob" &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$resourceAppIdURI = "&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank" rel="noopener"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$authority = "&lt;A href="https://login.microsoftonline.com/common/oauth2/authorize" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/authorize&lt;/A&gt;";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$authContext = New-Object "Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext" -ArgumentList $authority&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$authResult = $authContext.AcquireToken($resourceAppIdURI, $clientId, $redirectUri, "Auto")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;return $authResult&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# Get the auth token from AAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$token = GetAuthToken&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# Building Rest API header with authorization token&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$authHeader = @{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Content-Type'='application/json'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Authorization'=$token.CreateAuthorizationHeader()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;# properly format groups path&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$groupsPath = ""&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if ($groupID -eq "me") {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$groupsPath = "myorg"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;} else {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$groupsPath = "myorg/groups/$groupID"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# Check the refresh history&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$uri = "&lt;A href="https://api.powerbi.com/v1.0/$groupsPath/datasets/$datasetID/refreshes" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/$groupsPath/datasets/$datasetID/refreshes&lt;/A&gt;"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Invoke-RestMethod -Uri $uri -Headers $authHeader -Method GET -verbose&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;While running the above code getting the error "&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="outer"&gt;&lt;DIV class="middle"&gt;&lt;DIV class="inner fade-in-lightbox"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="pagination-view has-identity-banner animate slide-in-next"&gt;&lt;DIV&gt;&lt;DIV class="row text-title"&gt;Need admin approval&lt;/DIV&gt;&lt;DIV class="table row-app-info"&gt;&lt;!--     ko if: appLogoUrl     --&gt;&lt;!--     /ko     --&gt;&lt;DIV class="table-cell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="row text-body"&gt;&lt;P class="text-block-body overflow-hidden no-margin-top"&gt;needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="form-group"&gt;&lt;A href="https://login.microsoftonline.com/common/reprocess?ctx=rQIIAePiMtIzstAz1rMwMxBiNNRiNtQztFIxMzdOMk5OTtQ1STMw0jWxNE7WTTQySNU1T0lLsTS3tEgyTTMuEuISqPBPL5yqK-o-o2vKpe55dharGCVLi_KsMlNL0qzK063yE0tLMqyM9Ays8vOTdjAyXmBkfMHIeIuJ398RKGEEIvKLMqtSVzFrZJSUFBRb6esn5iXmVBZnFuuVZ-al5JcX6-WllugX5JenFiVl6icWZG5iZkvOz83Nz9vFrJJsmppmbmJirGtoagZ0pbmRuW6SpQWQZWqZZGhoZmyRnJh2g5nxAgvjKxZJDiYBGQlmhTtsGiwGzFZcHFwCDBK7-hkVGH6wMC5iBfoleQYHg99pGafeG7v2T5nHwnCKVd-oyKjYTNvV2D8wrcwlzCK4yrzEsLg41CI9LS8jsdgoxCjS1N3FK8Kp0qDY1tLKcAIb4yk2Fj0_15APbIwd7Ay7OHGHxi0uESMDQ0tdAzOg6xUMTK1MLKyMzaNucQNdEso6TXdRuLHnFKHCT-wCJW2PsAkCAA2&amp;amp;prompt=select_account" target="_blank" rel="noopener"&gt;Have an admin account? Sign in with that account&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class="form-group"&gt;&lt;A href="https://login.microsoftonline.com/common/oauth2/authorize?resource=https%3a%2f%2fanalysis.windows.net%2fpowerbi%2fapi&amp;amp;client_id=673b3cca-4f02-493c-a20e-7dfd9798b5f3&amp;amp;response_type=code&amp;amp;haschrome=1&amp;amp;redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob&amp;amp;client-request-id=71674f78-2d95-4715-988a-94d28b9e3e38&amp;amp;x-client-SKU=.NET&amp;amp;x-client-Ver=2.28.3.860&amp;amp;x-client-CPU=x64&amp;amp;x-client-OS=Microsoft+Windows+NT+10.0.18362.0&amp;amp;sso_nonce=AQABAAAAAADCoMpjJXrxTq9VG9te-7FXOZZiLsSHRk7yzmmtevUJ37v8rVLluECvMIFWaHdVUPTo9ZJqj2QJFmhpSNi5-eIcKTYiKxFZnQ58Q9njPvTMxSAA&amp;amp;mscrid=71674f78-2d95-4715-988a-94d28b9e3e38#" target="_blank" rel="noopener"&gt;Return to the application without granting consent&lt;/A&gt;"&lt;/DIV&gt;&lt;DIV class="form-group"&gt;Note: I am not the admin of my cloud&lt;/DIV&gt;&lt;DIV class="form-group"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="form-group"&gt;please help me want need to be done to resove this error. Also what&amp;nbsp; approval is required and how my admin can provide the access?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Jun 2019 06:06:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-error-Need-admin-approval/m-p/715677#M19665</guid>
      <dc:creator>rampatel58</dc:creator>
      <dc:date>2019-06-15T06:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error Need admin approval</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-error-Need-admin-approval/m-p/1692932#M28117</link>
      <description>&lt;P&gt;I am getting the same issue even though I followed the exact steps with their sample application&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-your-organization?tabs=react" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-your-organization?tabs=react&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 19:31:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-error-Need-admin-approval/m-p/1692932#M28117</guid>
      <dc:creator>igajera</dc:creator>
      <dc:date>2021-02-26T19:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error Need admin approval</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-error-Need-admin-approval/m-p/1693250#M28120</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/144878"&gt;@rampatel58&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/287700"&gt;@igajera&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not clear whther you created Azure application or not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you had created then give Admin permissions to that application on the dataset or report you are trying to export or embed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manikumar&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 02:48:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-error-Need-admin-approval/m-p/1693250#M28120</guid>
      <dc:creator>manikumar34</dc:creator>
      <dc:date>2021-02-27T02:48:22Z</dc:date>
    </item>
  </channel>
</rss>

