Reply
lfk32
Regular Visitor

powerbi published report and authentication to SharePoint

I have a case in which a team has a powerbi dahboard that pull data from many fexcel files stored on mulitple Sharepoint sites (in the samne tenant).  Right now the authenticatio nto sharepoin is using a regualr users name and password.  The issue is with MFA etc the crednetials need to be refreshed to get a new Oauth token every 14 days and it the perosn is on leave this also becimes a issue.

 

My first thought was Service principals however the compeny deveoping the dahsbaord claims the issue with Power Platform, including BI, and its SharePoint integration, is that it still does not support an Azure Service Principal as an auth method.

 

As they are asling for a generic account and remove all the seucifty options etc.  Usual stuff.

 

Firstly I cannot find any info on the service principal being supported or not.  These tools have bene around for many years seem to me this would have been something address.

 

Can anyone help point me to where this apparent lakc of support is documented or if this is not actuslly the fact and they can be used is ther ea guide on hwo to setup a SP and add this to a report when buiding it in PowerBi desktop?

 

Thanks. 

1 ACCEPTED SOLUTION
tharunkumarRTK
Super User
Super User

@lfk32 

 

Power BI does support service principal authentication. Please checkout the below article.

https://blog.fabric.microsoft.com/en-us/blog/service-principal-support-to-connect-to-data-in-dataflo...

For your scenario, both sharepoint and web connectors support service principal so you can follow the below approach. 
1. When you are developing the report from desktop, you can continue using the individual user OAuth authentication.

2. Once you publish the report and dataset (semantic model), instead of autheticating with user accounds create a cloud connection and map your dataset with that connection. 

 

This way you can avoid the problem of periodic token expiration. Also you whoever is creating this connection can share it the team so that even if that is on leave, other teammates can use it.

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

View solution in original post

1 REPLY 1
tharunkumarRTK
Super User
Super User

@lfk32 

 

Power BI does support service principal authentication. Please checkout the below article.

https://blog.fabric.microsoft.com/en-us/blog/service-principal-support-to-connect-to-data-in-dataflo...

For your scenario, both sharepoint and web connectors support service principal so you can follow the below approach. 
1. When you are developing the report from desktop, you can continue using the individual user OAuth authentication.

2. Once you publish the report and dataset (semantic model), instead of autheticating with user accounds create a cloud connection and map your dataset with that connection. 

 

This way you can avoid the problem of periodic token expiration. Also you whoever is creating this connection can share it the team so that even if that is on leave, other teammates can use it.

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)