Forum Discussion
Trigger fabric data factory pipeline using python code
Hi Fabian,
Thank you for your response. I have added the service principal (app registration) to the Fabric workspace with the Contributor role, as per your suggestion. However, I am still encountering the "Unauthorized" error related to the access token.
Please find the attached screenshot for your reference, showing where the app registration has been added within the Fabric workspace.
I would appreciate any further guidance you can provide to resolve this issue.
Thank you again for your assistance.
Thanks & Regards,
Punnam Srinivas
- FabianSchut1 year agoSolution Sage
Hi PunnamSrinivas,
Check, that looks good. What code do you use to retrieve the bearer token? Can you follow these steps:
https://stackoverflow.com/questions/78226072/generating-token-for-fabric-rest-api-using-client-secret#answer-78230630