An official is, in the primary sense, someone who holds an office in an organisation, of any kind, but participating in the exercise of authority, such as in government.
In its fundamental meaning, an official refers to a person who takes up a role within an entity, particularly one where they exercise power or authority, like in governmental settings.