Forum Discussion
Anonymous
6 years agoNot applicable
Need help in changing my Azure Data lake connection string dynamically with API call
Hi All, I have a requirement to change the connection string to the Azure DataLake Gen 2 dynamically based on the tenant id. My data source is Azure Data Lake Gen2. We are maintaining a stor...
amitchandak
Super User
6 years agoImkeF , can you help on this.
ImkeF
Community Champion
6 years agoHi Anonymous ,
unfortunately I'm not aware of any API that returns tenant IDs.
The Graph API could return the userprincipalname of the currently logged in user (you need a custom connector for it: https://www.thebiccountant.com/2019/04/17/graph-api-custom-connector-power-bi/)
Not sure if you have any "translation" table that could lookup the tenant ID on that basis?