Forum Discussion
403 Forbidden error occured when using REST API
Can you post the complete code?
I hope your registered your app with Azure Active directory and provided proper clientid,clientkey,username and pwd.
https://login.microsoftonline.com/yourdirectorykey/oauth2/token
Provide proper directory key to resolve your issues.
Let me know if you need any further details
- hari_seenivasan9 years agoFrequent Visitor
Try the following API end point
I believe its still in beta mode.
https://api.powerbi.com/beta/myorg/datasets
- s8nRrG9 years agoRegular Visitor
hari_seenivasan wrote:Try the following API end point
I believe its still in beta mode.
https://api.powerbi.com/beta/myorg/datasets
It works with the same 403 status code.
- hari_seenivasan9 years agoFrequent Visitor
Redirect response to HTML and share here, we will get more details on what went wrong.
- s8nRrG9 years agoRegular Visitor
Sunkari wrote:I hope your registered your app with Azure Active directory and provided proper clientid,clientkey,username and pwd.
https://login.microsoftonline.com/yourdirectorykey/oauth2/token
Provide proper directory key to resolve your issues.
Let me know if you need any further details
I use correct directory key. If I used wrong directory key, I'd got the exception No service namespace named 'wrong directory key' was found in the data store during obtaining access token.
- kalcey9 years agoFrequent Visitor
Can you please elaborate on where the username/password go?
Thanks
- alanhodgson9 years agoSolution Supplier
I am having this same problem. I get a valid token, but when I pass the request, I get the HTTP Error 403: Forbidden. In Azure AD, I delegated permissions, and I tested sending request through Apiary and it worked.
Anyone have a solution?
Thanks,
Alan
- apm_user_mart5 years agoFrequent Visitor
I am in exactly the same situation as you. If there is a solution, please let me know, Thanks!