Does it apply only to people who take an oath of office?
No it doesn't, but I would hold those to a tighter standard that have taken that oath.