To clarify power, the president called a meeting of his secretaries, including Musk.

On Thursday, President Donald Trump personally met with his Cabinet to convey the message that you, not Elon Musk, are in command of your departments.
Two administration officials said that Trump informed senior members of his administration that Musk had the authority to advise the departments but not to make decisions on personnel and policy on his own. Musk was present as well.
The billionaire Tesla founder, who leads the Department of Government Efficiency, threatened and fired government employees in a series of mass firings that left the federal government and its workforce in a state of general uncertainty. DOGE’s actions have been met with fierce legal opposition and criticism from Democratic lawmakers and some Republicans.