Forum Discussion

DataWiz99's avatar
DataWiz99
Frequent Visitor
8 years ago
Solved

powerbi embedded access token

Hello All, 

 

I'm facing an issue with getting an access token using powerbi rest api.

 

Here are the steps that I followed and this has already worked in another environment

 

1) Develop content in powerbi desktop and publish to powerbi service

2) Use a powerbi pro account and register an app in Azure AD

3) The app is a webapp and I have copied the clientID and Client secret

4) go to permission in Azure AD --> App registrations

5) select all the required permissions from Azure active directory and PowerBI Service

6) Save and grant all the selected permissions using an Admin account

7) Use a REST API extension and test for access token - Parameters include Embed user cred's, client id, client secret

 

I followed the same procedure in another environment and was able to get the access token, embed token and everything.

 

The only thing that is different in the new environment is Azure AD for Office 365 vs old environment has Azure AD premium p1, apart from this everything else is identical.

 

 

Any help on this is appreciated. 

  • DataWiz99's avatar
    DataWiz99
    8 years ago

    Hi v-ljerr-msft

     

    Thank you for the response, I was able to debug the issue.

     

    The issue was with the passwords that were being used for the Master users (they had & and % in them) which was throwing off the REST call chrome extension I was using. 

     

    Regards

2 Replies

  • v-ljerr-msft's avatar
    v-ljerr-msft
    Microsoft Employee

    Hi DataWiz99,

    Here are the steps that I followed and this has already worked in another environment

     

    1) Develop content in powerbi desktop and publish to powerbi service

    2) Use a powerbi pro account and register an app in Azure AD

    3) The app is a webapp and I have copied the clientID and Client secret

    4) go to permission in Azure AD --> App registrations

    5) select all the required permissions from Azure active directory and PowerBI Service

    6) Save and grant all the selected permissions using an Admin account

    7) Use a REST API extension and test for access token - Parameters include Embed user cred's, client id, client secret



    The steps seems fine to me.

    I'm facing an issue with getting an access token using powerbi rest api.

    Have you received any error? Could you post the detailed error message here?

     

    I addition, if the issue persists, I would suggest you create a support ticket on Power BI Support page for better assistance. :smileyhappy:

     

    Regards

    • DataWiz99's avatar
      DataWiz99
      Frequent Visitor

      Hi v-ljerr-msft

       

      Thank you for the response, I was able to debug the issue.

       

      The issue was with the passwords that were being used for the Master users (they had & and % in them) which was throwing off the REST call chrome extension I was using. 

       

      Regards