An oath of office is an oath or affirmation a person takes before undertaking the duties of an office, usually a position in government or within a religious body, although such oaths are sometimes required of officers of other organizations. ... The word 'oath' and the phrase 'I swear' refer to a solemn vow.