US troops on the border against illegal foreign nationals or others involved in criminal border activity, I believe is unconstitutional. However, if they deputized them as border patrol agents, would that be legal? I don’t know.
Using troops to protect the border is unconstitutional?