Sure, you can replace the data source. The following KB article should give you more insight:
Hope this helps!
I have the same issue as Shuangjian and understand this can be done manually. Now if I publish my workbook to Tableau server, can the data connection be automatically changed by Tableau server depending on the logged in user?