Forum Discussion
Changing gateway datasource credentials through API
Did you grant that app/service principal the required gateway admin permissions and the ReadWrite scope on the tenant?
Hi lbendlin,
Service Principal have ReadWrite scope API permissions. Not sure about gateway admin? It's some kind of role in Power BI tenant? I'm actually not using gateways because datasource is in Azure.
- lbendlin4 years agoSuper User
Your original question stated "gateway datasource credentials". Please clarify.
- SashaSydorenko4 years agoNew Member
Hmmm good point. 🙂
It a bit confusing because it is how docs article is called https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/update-datasourceBut yeah, my report don't need a gateway - datasourcse is Azure SQL DB.
Does i'm use wrong API to update datasource credentials in this case?
Didn't found any other way to do that.
- sjoeboy4 years agoRegular Visitor
Hi @SashaSydorenko ,
Did you manage to resolve this issue?
I am getting the same error.
Please share if you have a solution.
Thanks