Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

How can I access SharePoint using a Service Principal

(0) ShareShare
ReportReport
Posted on by 1,294

Hi

 

I am trying to use a service principal to access SharePoint list how can I do this ?

 

My security team do not want me to use a service account as they are considered insecure.

 

Thanks

 

Nigel

  • MattMMeyer Profile Picture
    6 on at
    Re: How can I access SharePoint using a Service Principal

    Please check out this video.  I go over how to connect to SharePoint using User Principals, Graph API, and Custom Connectors.

    Power Automate Using ONLY Service Principals 

  • NdaLuz Profile Picture
    31 on at
    Re: How can I access SharePoint using a Service Principal

    I'm also trying to configure a service principal (application user) to access Dataverse and Sharepoint. Dataverse was easy, but I'm struggling a little with Sharepoint and Excel/Word. Do we still need to call the API "manually" (using HTTP requests instead of the Sharepoint connector)? Is there a better solution now?

     

    The Sharepoint solution feels like a workaround (compared to the way it is done for Dataverse). Do we know whether Microsoft is planning on implementing the service principal/application user for Sharepoint/Excel/Word/Office365 soon?

    If the only way is to use this workaround with SharePoint, is there such a workaround for Excel/Word/Office365?

  • MattMMeyer Profile Picture
    6 on at
    Re: How can I access SharePoint using a Service Principal

    I know this is an old one, but I hope this helps.
    The Service Principal is an App in Entra ID.  You grant it permissions to the API.  It is not licensed per se.  HOWEVER, in Microsoft Power Automate Licensing it states specifically that you are to license anyone that "benefits" from the flow.
    Therefore, while the service principal is not licensed directly, anyone that benefits from the flow's work needs to be licensed.

  • Ghost55811 Profile Picture
    20 on at
    Re: How can I access SharePoint using a Service Principal

    Did you ever find an answer to your question. I am looking at a similar problem now and as far as I can figure it out since the flow has a HTTP trigger, Power automate treats it like a Automated flow. This would mean that the flow owner license is used by all flow runs.

  • NPrice99 Profile Picture
    1,294 on at
    Re: How can I access SharePoint using a Service Principal

    Hi @eric-cheng  as this uses Service Principals how does the licencing work ?

    a)    So User A in PowerApps call a flow which uses this PowerAutomate Flow with the HTTP request.  What licence does user A require ?

    b) A user calls the flow directly, again with the HTTP Request which uses the Service Principal.  What licence does this user require ?

     

    Regards

     

    Nigel

     

     

  • eric-cheng Profile Picture
    5,171 on at
    Re: How can I access SharePoint using a Service Principal

    Hi @NigelP ,

     

    In Power Automate, not all connectors support service principals.

     

    To work around this, you could use the HTTP connector (premium connector) which supports this to csll SharePoint APIs.  Understand that this will be more difficult.

     

    Screenshot_20211014-003011_Chrome.jpg

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492

Featured topics