Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
DataWiz99
Frequent Visitor

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. 

1 ACCEPTED SOLUTION

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

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
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. Smiley Happy

 

Regards

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors