<?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 Authentication to Power BI report in default directory to B2C tenant react Application!!! in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-to-Power-BI-report-in-default-directory-to-B2C/m-p/3399556#M44102</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have the following scenario in place and got to struck!! we have all our API's DB and PBI reports are present in the default directory in our azure subsctiption. we have our UI client facing application present in the B2C tenant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we would like to load the power BI based on the role of the user who logs in to the front end app roles like amin, manager, user etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have followed the microsoft documentation and did the following actions but we are not able to load the report.&lt;/P&gt;&lt;P&gt;1. B2C tenant : B2C Directory&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; appname&amp;nbsp; :&amp;nbsp; contoso-ui&lt;BR /&gt;&amp;nbsp; clientId :&amp;nbsp; xxxxxxxx&lt;BR /&gt;&amp;nbsp; tenantId :&amp;nbsp; yyyyyyy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Tenant B : default directory :&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; appname&amp;nbsp; :&amp;nbsp; contoso-api&lt;BR /&gt;&amp;nbsp; clientId :&amp;nbsp; pppppppp&lt;BR /&gt;&amp;nbsp; tenantId : qqqqqqqq&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Expose an api under app registration in Tenant B:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;add scopes as below&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;app.read&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; app.write&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. now add the client app Id to API tenant B.&lt;/P&gt;&lt;P&gt;3. Add the permissions to the api in tenent B and grant it&lt;/P&gt;&lt;P&gt;4. Now generate the access token from the Tenant A and try to load the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are unable to load the report can you please guide further this is really ticking our SLA and need to close this ASAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;References&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/active-directory-b2c/client-credentials-grant-flow?pivots=b2c-user-flow" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/active-directory-b2c/client-credentials-grant-flow?pivots=b2c-user-flow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/powerbi-client-react" target="_blank"&gt;https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/powerbi-client-react&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.kieferconsulting.com/2021/11/01/how-to-embed-power-bi-content-in-a-react-application/" target="_blank"&gt;https://www.kieferconsulting.com/2021/11/01/how-to-embed-power-bi-content-in-a-react-application/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/samples/azure-samples/ms-identity-ciam-javascript-tutorial/ms-identity-ciam-javascript-tutorial-1-sign-in-react/" target="_blank"&gt;https://learn.microsoft.com/en-us/samples/azure-samples/ms-identity-ciam-javascript-tutorial/ms-identity-ciam-javascript-tutorial-1-sign-in-react/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2023 16:41:51 GMT</pubDate>
    <dc:creator>sudhadandu</dc:creator>
    <dc:date>2023-08-25T16:41:51Z</dc:date>
    <item>
      <title>Authentication to Power BI report in default directory to B2C tenant react Application!!!</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Authentication-to-Power-BI-report-in-default-directory-to-B2C/m-p/3399556#M44102</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have the following scenario in place and got to struck!! we have all our API's DB and PBI reports are present in the default directory in our azure subsctiption. we have our UI client facing application present in the B2C tenant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we would like to load the power BI based on the role of the user who logs in to the front end app roles like amin, manager, user etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have followed the microsoft documentation and did the following actions but we are not able to load the report.&lt;/P&gt;&lt;P&gt;1. B2C tenant : B2C Directory&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; appname&amp;nbsp; :&amp;nbsp; contoso-ui&lt;BR /&gt;&amp;nbsp; clientId :&amp;nbsp; xxxxxxxx&lt;BR /&gt;&amp;nbsp; tenantId :&amp;nbsp; yyyyyyy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Tenant B : default directory :&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; appname&amp;nbsp; :&amp;nbsp; contoso-api&lt;BR /&gt;&amp;nbsp; clientId :&amp;nbsp; pppppppp&lt;BR /&gt;&amp;nbsp; tenantId : qqqqqqqq&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Expose an api under app registration in Tenant B:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;add scopes as below&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;app.read&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; app.write&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. now add the client app Id to API tenant B.&lt;/P&gt;&lt;P&gt;3. Add the permissions to the api in tenent B and grant it&lt;/P&gt;&lt;P&gt;4. Now generate the access token from the Tenant A and try to load the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are unable to load the report can you please guide further this is really ticking our SLA and need to close this ASAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;References&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/active-directory-b2c/client-credentials-grant-flow?pivots=b2c-user-flow" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/active-directory-b2c/client-credentials-grant-flow?pivots=b2c-user-flow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/powerbi-client-react" target="_blank"&gt;https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/powerbi-client-react&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.kieferconsulting.com/2021/11/01/how-to-embed-power-bi-content-in-a-react-application/" target="_blank"&gt;https://www.kieferconsulting.com/2021/11/01/how-to-embed-power-bi-content-in-a-react-application/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/samples/azure-samples/ms-identity-ciam-javascript-tutorial/ms-identity-ciam-javascript-tutorial-1-sign-in-react/" target="_blank"&gt;https://learn.microsoft.com/en-us/samples/azure-samples/ms-identity-ciam-javascript-tutorial/ms-identity-ciam-javascript-tutorial-1-sign-in-react/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Authentication-to-Power-BI-report-in-default-directory-to-B2C/m-p/3399556#M44102</guid>
      <dc:creator>sudhadandu</dc:creator>
      <dc:date>2023-08-25T16:41:51Z</dc:date>
    </item>
  </channel>
</rss>

