Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Pass data source credentials in Power BI as parameters

Hello All,

 

I would like to know that, Is it possible to use parameters to update the data source credentials in power bi service and and authenticate.

The reason behind this question is, I have published 15 reports to Power BI Service workspace.

These 15 reports are part of a client lets call it as CLIENT1 and the ServerName as SERVER1, database used for all these reports are DATABASE1 with UserName ABC and Password as ABC123. 

For CLIENT2 also we need to have the same template reports in another workspace as WORKSPACE_CLIENT2.

But the Server, DB and credentials are as SERVER2, DATABASE2 with UserName DEF and Password as DEF123.

**The schema between these servers and database tables used for the reports are same.

 

I have created parameters in power bi desktop as paramServer, paramDB and our devops team were able to update the details through REST API.

I understand that the data source credentials authentication is something not possible for so and so secirity reasons using REST API.

https://community.powerbi.com/t5/Developer/Power-BI-REST-API-Update-datasource-credentials/m-p/1198628

https://ideas.powerbi.com/ideas/idea/?ideaid=a08d1dd1-6be8-47ab-a95b-c0a020d71417

 

But I would like to know, if is there any possibility to have the parameters for UserName and Password for datasorce in power bi desktop, do update and authenticate in power bi service through programatically but not manually.

 

Any suggestions please.

Thanks,

Mohan V.

4 Replies