Forum Discussion
Nigel_Price9911
Oct 06, 2021Iron Contributor
Using Service principals With SharePoint
Hi Does anyone know if I can use Service Principals with SharePoint Online ? If so how ? Can I also use Service Principals with SharePoint connectors in PowerAutomate Flow ? Thanks ...
SureshkumarChermadurai
Oct 30, 2023Copper Contributor
Hi,
You can create a new app registration and give access to SharePoint using PnP Powershell script. Then finally connect to a SharePoint site using the App details without any MFA. Refer below link to create Service Principal and give access to SharePoint.
https://www.leonarmston.com/2022/01/pnp-powershell-csom-now-works-with-sharepoint-sites-selected-permission-using-azure-ad-app/
Refer below link to connect SharePoint using Active Directory OAuth through Logic Apps. You can follow the same with Power Automate, but HTTP connector in Power Automate is a Premium connector.
https://spblog.net/post/2021/06/08/how-to-call-sharepoint-rest-api-with-application-permissions-from-azure-logic-app-with-azure-key-vault-and-managed-identity
You can create a new app registration and give access to SharePoint using PnP Powershell script. Then finally connect to a SharePoint site using the App details without any MFA. Refer below link to create Service Principal and give access to SharePoint.
https://www.leonarmston.com/2022/01/pnp-powershell-csom-now-works-with-sharepoint-sites-selected-permission-using-azure-ad-app/
Refer below link to connect SharePoint using Active Directory OAuth through Logic Apps. You can follow the same with Power Automate, but HTTP connector in Power Automate is a Premium connector.
https://spblog.net/post/2021/06/08/how-to-call-sharepoint-rest-api-with-application-permissions-from-azure-logic-app-with-azure-key-vault-and-managed-identity