SharePoint Logic App connector authentication using Client Id and Secret

Luciano Andrea 40 Reputation points
2024-03-19T15:13:54.0233333+00:00

SharePoint Logic App connector seems to imply hard-coding AD account.

How create a file on Sharepoint online using Client Id and Secret instead?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,221 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,868 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,546 Reputation points
    2024-03-20T04:55:18.32+00:00

    @Luciano Andrea Thanks for reaching out.

    The principal auth is not supported by SharePoint Connector. It would only work for user connections. You cannot use SharePoint connector with client ID and secret.

    Alternative you can leverage the HTTP connector to call any external endpoint to automate the same at your end.

    References: https://learn.microsoft.com/en-us/training/modules/integration-http-connector/2-rest-service

    https://learningbydoing.cloud/blog/connecting-to-sharepoint-online-using-managed-identity-with-granular-access-permissions/

    Please 'Accept Answer' if it helped so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.