The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Solved! Go to 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
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.
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
31 | |
20 | |
18 | |
12 |
User | Count |
---|---|
83 | |
40 | |
38 | |
23 | |
16 |