to make sb promise to do a job correctly, to be loyal to an organization, a country, etc.
swear sb in
to make sb promise to do a job correctly, to be loyal to an organization, a country, etc.
He was sworn in as president.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition