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 StartedJoin us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now
Hello,
I am using Dataflow Gen 2 in Microsoft Fabric to ingest data from Salesforce using the Salesforce Objects connector. The connection is made using an Organizational Account (OAuth 2.0). However, I noticed that there's no option to provide authentication details such as client ID, client secret, or environment URL, as I could in Azure Synapse using the SalesforceV2 type.
Here are the points I'm concerned about:
Hi @SyedUmairHasan ,
With OAuth 2.0, typically when you authenticate once, you receive an access token which has a limited lifetime, and a refresh token which can be used to get new access tokens without requiring the user to reauthenticate. The frequency of reauthentication depends on the expiration time of the access token, which is typically short-lived (often around 1 hour), and the refresh token, which can last longer but also expires eventually. The Dataflow Gen 2 seem does not provide an interface to manage these tokens directly, you might need to reauthenticate whenever the refresh token expires. However, good OAuth implementations will automatically handle refreshing the access token without needing manual intervention until the refresh token expires (If supported by the server or client).
Cons of Using Organizational Account:
Security: It requires more privileged access than necessary, which goes against the principle of least privilege.
Scalability: If multiple processes or services need to connect, managing multiple Organizational Accounts can become cumbersome.
Stability: If the account used for authentication is locked out, compromised, or its permissions are changed, it can disrupt data flows.
It is possible to explore setting up a middleware service to handle authentication and token management and expose an API for Dataflow Gen 2 to call.
Refresh (any) OAuth2 API from PowerBI Online / Dataflows, using Azure Functions | by Thye | Medium
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
1. Reauthentication Requirement - It depends on your organisation conditional access policy requirements. Normally, the refresh token expires after 90 days, so you need to re authenticate after 90 days. If this policy is not enabled in your org then you need to re authenticate.
2. Cons of Using Organizational Account:: I would suggest you not use individual accounts for production use cases, you can create a common service account user principal. You and your team can use it for such use it for such scenarios.
3. Workaround for Client Credentials Flow: I dont think this option is available, you can reach out to microsoft support team and get the answer from them
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Fabric update to learn about new features.
User | Count |
---|---|
34 | |
17 | |
3 | |
3 | |
2 |
User | Count |
---|---|
41 | |
16 | |
14 | |
10 | |
7 |