Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I am trying to access files located in SharePoint Online. We would like to use a service principal for the authentication. But when I try to save the credentials I get the following error:
Service principal error
Unable to update connection credentials.
Invalid connection credentials.
Details:
The credentials provided for the SharePoint source are invalid. (Source at https://mytenant.sharepoint.com/sites/MySite.)
This is what I enter in the data source
sharePointSiteURL: https://mytenant.sharepoint.com/sites/MySite
Authentication method: Service principal
Tenant ID: My tenant ID
Service Principle ID: The Application (client) ID from the Entra ID App registration
Service principle key: The value of the secret I created for the Entra ID App registration
The Entra ID App registration has the following API permissions
The service principal (Entra ID app) has Read permissions on the SharePoint site
What is it I am missing in order to get this to work 🙂 ?
Regards Erik
Hey,
Setting the property "DisableCustomAppAuthentication" in your SharePoint tenant to "false" is doing the trick, you can use the following PS command :
Set-SPOTenant -DisableCustomAppAuthentication $false
The problem is that since November 27th, 2023 (depreication of Azure Access Control Services) this is set to "true" by default even though it's still working until April 2, 2026. The currently only (recommended) way is to use certificate-based OAuth2.0 authentication which won't work in the Power BI service though as it requires a local certificate to be integrated, seems to be kind of a technical debt the Power BI team has yet to address.
Hope this helps.
Patrick Pichler
Owner & Co-Founder
Teams: Chat with me
Website: www.creativedata.io
Follow us: LinkedIn | Medium
Data Management | Data Analytics & Reporting | Data Apps & APIs | Artificial Intelligence | EU Projects
Having the same issue. This is our first time setting up a Service Principal to access SharePoint sites in Power BI, and I'm glad I found this thread because it seems like we're not the only ones having issues.
Hello,
did you find a solution for this ? I habe now the same issue with the same error message. I tried also to create a Ticket but it was closed with the message Microsoft has no ressources and i sould contact a partner.
Hi,
No, unfortunately no resolution yet. The case I have with Microsoft is still open.
Did you find a solution to this? I'm facing the same issue
Hi Mariza,
No, unfortunately I have not found a solution to this 😞
If you have managed to get it working, I would be happy to hear what I need to do.
Still no news? This problem is getting really annoying.
Hi,
No, not yet.
I still have an open support ticket with Microsoft regarding this.
I do not know if it will result in a resolution yet. But I will update this thread once the case is closed.
Service Principle ID: The Application (client) ID from the Entra ID App registration,
You need Object ID for the SP ID. Not Application ID.
Hi @zhangjoe,
When we change from Application (client) ID to Object ID we got another error:
Any idea what might cause this?
Hi @vizerik ,
Have submitted this issue internal to confirm, would update here as soon as possible if there is any update about it.
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous - We are facing a similar issue when trying to connect to a Sharepoint Online list from PowerBI Online using service principal as the authentication method. Wondering if you have got any guidance from your internal team
Hi @Anonymous,
Thank you for getting back to me!
It would be appreciated if you could come back to me no matter what info you get in the internal ticket you created.
I guess it could be an issue with Power BI.
But it could also be that there is something I have done wrong. If that is the case I would like some guidance on what I have to do in order to get it to work.
Just for your information. I found the below thread which sounds like a similiar issue I have.
Regards Erik
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
22 | |
17 | |
10 | |
8 | |
8 |
User | Count |
---|---|
37 | |
28 | |
18 | |
17 | |
14 |