Forum Discussion
bfinnegan7675
3 years agoNew Member
PowerBI Rest API C# throwing 'Operation returned an invalid status code 'Unauthorized''
Hey all, I've been following some tutorials and am trying to access some reports from our Power BI instance. I can successfully authenticate and get a Bearer Auth token, but when using my PowerBI...
bfinnegan7675
3 years agoNew Member
My issue was that the API Permissions needed the Tenant.ReadAll and Tenant.WriteAll permissions in Azure AD.
Antriksh - I did try to change my ExecuteAsync() call to use the .Result but it was not working because it was throwing syntax errors.
- Anonymous2 years agoNot applicable
but the permission seems too high, need admin consent, is it essential, i meet the same unauthorized errror