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.
Hi Power BI Experts - I have a requirement to call power bi rest api from dot net code, but before that I was trying to test it using powetman client, but getting 403 error when calling power bi rest service using auth token. I follow below steps to do that. Please suggest what step I'm missing over here?
1) Created Azure AD app and gave Power BI service deletgaed permissions to this app.
2) Retrieve access token using client id and secret as below.
3) Then token recieved form step 2, used as authrozation header and passed to power bi rest api service in post man client as below.
Solved! Go to Solution.
I was able to resolve it.
The resolution is, I was using oauth 2.0 V1 end point for token generation which was giving 403 when being used with Power BI rest api, but when I tried oauth 2.0 V2 end point to generate tojen , it worked.
I would really be happy, if some kind of error message was thrown in response body to troubleshoot this, but this resolution may help for other users if they fall into similar issue.
I was able to resolve it.
The resolution is, I was using oauth 2.0 V1 end point for token generation which was giving 403 when being used with Power BI rest api, but when I tried oauth 2.0 V2 end point to generate tojen , it worked.
I would really be happy, if some kind of error message was thrown in response body to troubleshoot this, but this resolution may help for other users if they fall into similar issue.
User | Count |
---|---|
36 | |
15 | |
11 | |
11 | |
8 |
User | Count |
---|---|
44 | |
44 | |
19 | |
18 | |
17 |