Forum Discussion
Using acquireTokenWithClientCredentials, got token, but failed to use REST API - error "Unauthorized
- Anonymous5 years ago
It 's confiruration issue. I did have the admin rights. Asked IT admin to help out.
Hi Anonymous ,
Please refer to these threads:
https://community.powerbi.com/t5/Developer/Generating-Power-Bi-Access-Token-in-NodeJS/td-p/276522
https://community.powerbi.com/t5/Developer/API-Generate-Embed-Token-in-Node-js/td-p/405201
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the info. But the issue I have is different. We are not generating Access Token, we acquire the Access Token using Azure AD secret ... the issue is why the token returned does not work when it is used with Power BI REST API ?
Thanks
Yong
- Anonymous5 years agoNot applicable
It 's confiruration issue. I did have the admin rights. Asked IT admin to help out.
- andrewtuplin5 years ago
Advocate II
Do you mean you did NOT have admin rights? I'm also stuck on this.
- Anonymous5 years agoNot applicable
Yes, did NOT have the admin rights.