An oath of office is an oath a person gains a higher position , usually in government or within a religious body . 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 .