Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
GD-L
Frequent Visitor

Sharepoint Service Principal on Gateway

I am trying to connect through a gateway using the Sharepoint Service Principal. We have created the Application Registration and added the API Permissions: 

AllSites.Read
Sites.Read.All
 
TermStore.Read.All
User.Read.All
 
However after adding the SP to the on-prem cluster I receive: 
Unable to create connection for the following reason: Invalid connection credentials. 
All connection ids/keys are correct.
3 REPLIES 3
GD-L
Frequent Visitor

Thanks. Regrettably, even using a cloud connection the Sharepoint the connection fails. I've regenerated keys, and copied info directly from Azure Portal. I have an open ticket w. MSFT hoping for a resolution.

Fifathim17
Microsoft Employee
Microsoft Employee

Do you have Ticket number with you and what was the resolution. please provide me the Ticket # so i can look what was the resolution provided by engineer.

Anonymous
Not applicable

Hi, @GD-L 

According to the official documentation, the on-premises data gateway does not support service principal authentication. This limitation can be the root cause of the problem you are experiencing. Service principal authentication methods are designed for cloud-based data sources and may not work with on-premises data gateways as expected. You can check the focumentation:

Service principal support in Data Factory - Microsoft Fabric | Microsoft Learn

 

Even if you mention that all the connection IDs/keys are correct, it's worth double-checking the credentials. Ensure that the tenant ID, service principal ID, and service principal key are entered accurately without any typographical errors. For more detailed steps on setting up service principal authentication, you can refer to the SharePoint Online List Connector documentation:

Configure SharePoint Online List in a copy activity - Microsoft Fabric | Microsoft Learn

 

Ensure that the permissions granted to the service principal are correctly configured and that admin consent has been granted to the service principal. The permissions you list should usually be sufficient to perform a read operation, but it's critical to confirm that they're active and not waiting for admin consent.

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.