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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.
2 REPLIES 2
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.

v-yohua-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors