The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Power BI Community,
I am experiencing difficulty with authenticating API requests using the OAuth 2.0 client credentials grant type for the Power BI REST API, although the password grant type works without issue. I am trying to access https://api.powerbi.com/v1.0/myorg/datasets which requires authentication tokens that I am attempting to retrieve via Azure Active Directory (Azure AD).
Here is a breakdown of the steps I've followed:
Application Registration: I registered my application in Azure AD, ensuring it has the necessary API permissions for Power BI
Token Request with Client Credentials:
Here are some additional details:
Questions:
I appreciate any insights or suggestions you might have. Thank you for your help!
Solved! Go to Solution.
1. yes
2. yes
3. no
4. Use a custom connector with AAD, for example GitHub - migueesc123/PowerBIRESTAPI: A Microsoft Power BI Data Connector or Power Query Connector fo...
1. yes
2. yes
3. no
4. Use a custom connector with AAD, for example GitHub - migueesc123/PowerBIRESTAPI: A Microsoft Power BI Data Connector or Power Query Connector fo...
@lbendlin Thanks for your quick response. Do you have any documented evidance on Q1 that is on known issue in authentication mechanisms.
For Q1 read through Chris Webb's blog.