dance to someone's tune
US /dæns tu ˈsʌm.wʌnz tuːn/
UK /dæns tu ˈsʌm.wʌnz tuːn/

1.
to do what someone else wants you to do, even if you do not want to
:
•
He always has to dance to his boss's tune if he wants to keep his job.
•
The smaller countries often have to dance to the tune of the more powerful nations.