March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
We have setup a service principal to enable the removal of personal user credentials from datasets due to Mandatory MFA being put in place. Still, we get an error for the SharePoint data source "The credentials provided for the SharePoint source are invalid. (Source at https://xxxxx.sharepoint.com/sites/xxxxxx.). The exception was raised by the IDbCommand interface."
We have two data sources SQL and Sharepoint
we have created cloud connection data gateways for these so we can select the required connections when publishing the dataset
Using the service principal auth method.
The connections are tested ok at this stage
The workspace has the service principal assigned to it with Admin rights
We take over the dataset as the service principal with REST API, and the SQL connection works ok but not Sharepoint (we tested these separately, we were told this was a prerequisite to allow the refresh to happen via the SP
We have gone around a few circles with MS support and this was their latest advice:
We created the service principal profile but this had no effect
Any advice anyone can give would be appreciated
Hi @aj1973 appreciate the help but sorry to say that Copilot shouldn't be trusted for this kind of information as no option to sign in exists as described and further research elsewhere proves its not possible:
In your situation it might be better to create a Service account and use it to authenticate against SQL Server and SharePoint.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Additional info:
Service principal API permissions are configured as:
The SP is part of a group within Sharepoint aswell
Hi @JohnAPD
Do the SP have a Power BI Pro license assigned to it?
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi @aj1973 I don't think its possible to assign a license to the Service Principal (app registration) as you cannot "login" with it and as per this:
Hi @JohnAPD
Thanks to Copilot
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
37 | |
22 | |
20 | |
10 | |
9 |
User | Count |
---|---|
59 | |
55 | |
22 | |
14 | |
12 |