The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
What are the recommended options for setting up data refresh with a service account of some type, so that it is not tied to a user's account?
So far, these are options I've gathered:
1. Create a new Windows service account that is synced to our Azure tenant. Grant access to Sharepoint list and workspace as needed. This account needs a Power BI Pro account. Run As with this account and configure the data source. Password can be set not to expire if needed.
2. Use the service principal method. In Azure Entra, create app registration, secret, and group. Add the group to the premium PBI workspace and admin portal for API access. Grant rights to SharePoint list. For dataset credentials, enter tenant, app id and secret id (shown as Service Principal Key?). This secret will need to be updated in every dataset when the secret expires at max 2 years.
I just tested this method (#2) and got the error "Failed to get access_token for sharepoint URL"
Are there other options? Any ideas on the error I am getting?
How would one identify the datasets that need to be updated when the secret is expiring?
Hi @samgreene1
COuld you make sure that you are using the App ID from the Service Principal when configuring the refresh?
That's helpful, thanks. I now get another error: The credentials provided for the SharePoint source are invalid.
Hi, @samgreene1
Please refer to the following links in the hopes of helping you.
Solved: The credentials provided for the SharePoint source... - Microsoft Fabric Community
Solved: Erorr-Credentials provided for Sharepoint source a... - Microsoft Fabric Community
Solved: SharePoint source forgets credentials on scheduled... - Microsoft Fabric Community
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.