DD is correct!
A senior Trump transition official said there was no ill will in the move, describing it as a simple matter of ensuring that Mr. Obamas overseas appointees leave the government on schedule, just as thousands of political aides at the White House and in federal agencies must do.
This general is a political appointee by the president and serves at the wish of the president.
So is Barry still president between the oath and the completion of the swearing-in ?