>A recent Supreme Court decision in Trump v. United States (2024) held that U.S. presidents have absolute immunity from criminal prosecution for acts committed within their core constitutional powers (such as issuing pardons, commanding the military, executing laws, and controlling the executive branch) and presumptive immunity for all official acts conducted during their presidency. However, presidents do not have immunity for unofficial or purely private acts
Obama can treason on whomever he wants as long as it isn't done privately.