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.
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
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.
- andrewtuplin5 years ago
Advocate II
Thank you for the clarification, but I'm still a bit confused. I am an admin im my workspace, but I'm still getting this error. It seems to me, that once you get the Token for the clientId/Secret, requests are made under that context, so my own credentials (and whether or not I'm an admin) shouldn't matter.