Forum Discussion
Trigger fabric data factory pipeline using python code
Hi Fabian,
Thank you for the information. Could you please provide step-by-step guidance on how to add the service principal to the security group? I attempted to generate a token in Postman using my personal account, but I was unsuccessful. I’m sharing a screenshot of the error message below.
Additionally, could you advise if I am missing any configurations regarding the service principal permissions or Fabric workspace permissions? Is there any specific URL or alternative method to generate the access token for accessing Fabric pipelines? Your help is greatly appreciated.
Hi PunnamSrinivas,
You can find a detailed step-by-step guide to add a service principal to a security group in Microsoft Entra: https://prodata.ie/2023/11/15/service-principal-fabric/. Scroll down to the section of Creation of Security Group; all the other steps you already implemented correctly. Do note that the group you need is of group type Security, otherwise, a service principal cannot be selected as a member. If the group you currently have is not of Security type, please create a new one and add this group to the developer settings Service principals can use Fabric APIs as you already screenshotted below. Once your service principal is added to the security group, try to authenticate again with the service princapal (and not your user account) using the grant_type client_credentials.
All the other steps seem good so far.