Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Refresh PowerBI without prompt: Client id + client secret

Hello,

 

Do you know if there is a script that allows to refresh PowerBI without explicitly give username and password?

 

I have a user with MFA and I want to continue in that way. 

 

When I tried to generate the token with only client id and client secret the payload is almost half of the information of the token generated with a script that uses prompt (I have use Powershell)

 

Anyone knows a way to update a dataset without exposing user and password?

 

Related links:

Code:https://stackoverflow.com/questions/53762407/adal-python-to-refresh-powerbi-dataset

Description in depth: https://community.powerbi.com/t5/Developer/Python-Get-AccessToken-POST-Request-Multi-factor-Auth/m-p/585202

 

Regards,

No Replies