Forum Discussion
Encountering 401/403 errors while using the Power BI REST API with PowerShell and Power Automate
Hi Amar_vm ,
This is a Power BI Rest API issue, not a Mobile App issue, next time if you encounter such a problem, please feel free to ask in the Developer forum, thank you!
If you post in the right forum, it will help you to get the solution quickly.
I have forwarded this post to Developer Forum, please know.
According to my research and understanding, 401/403 related error return codes are usually related to insufficient privileges or disabled admin settings, if it's convenient can you show how the AAD token is generated for you to run this rest API? If it is generated by AAD user, it should only need dataset owner permission, if it is called by a service principal profile, it may need more settings and permissions, you also need to open some admin settings, you can refer to this document
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.