web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I access Share...
Power Automate
Unanswered

How can I access SharePoint using a Service Principal

(0) ShareShare
ReportReport
Posted on by 1,302

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

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    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

  • NPrice99 Profile Picture
    1,302 on at

    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

     

     

  • Ghost55811 Profile Picture
    20 on at

    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.

  • MattMMeyer Profile Picture
    6 on at

    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.

  • NdaLuz Profile Picture
    31 on at

    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

    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 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard