Forum Discussion
Getting error 403 Forbidden: while using Default.UpdateDatasources API
- 1 year ago
Hi Aniketparab1234,
Thank you for the response and confirming that the issue is resolved now. I request you to please accept the post as Accept as Solution so that other members who has similar issue will find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi Aniketparab1234,
Thank you for reaching out to Microsoft Fabric Community.
The issue here is that only Tenant.Read.All permissions are visible under Application permissions and not the full set like Dataset.ReadWrite.All or Workspace.ReadWrite.All. Please follow below steps:
- Ensure the application is registered in your home tenant, not as a guest user. App registrations made as guest may not expose the full set of API permissions.
- Re add the Power BI API by searching for power bi service.
- If the permissions still do not appear, ask your Azure Admin to manually assign Dataset.ReadWrite.All and Workspace.ReadWrite.All permissions to the app.
- After permissions are added make sure to grant admin consent for the tenant.
Once this is done the service principal will have the correct access to call Default.UpdateDatasources.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
- Aniketparab12341 year agoRegular Visitor
Thanks v-achippa ,
You're right, those permissions might show up after these changes.
I was actually experimenting with some modifications to the body I was passing when calling the Update Dataset API. After adding a few additional inputs, the API call worked successfully and updated the datasource for that specific report.
Thank you for your suggestions!
- v-achippa1 year agoCommunity Support
Hi Aniketparab1234,
Thank you for the response and confirming that the issue is resolved now. I request you to please accept the post as Accept as Solution so that other members who has similar issue will find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa