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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors