WASHINGTON — Nikki R. Haley, the former ambassador to the United Nations, says in a new book that she resisted entreaties by other top aides to President Trump to undermine his policies, revealing more about the fractious world of loyalty and betrayal around the president.

Ms. Haley writes in her new memoir that John F. Kelly, then the White House chief of staff, and Rex W. Tillerson, then the secretary of state, tried to recruit her to join them in circumventing policy decisions by the president that they viewed as dangerous and reckless, an outreach she said she rebuffed.

“Instead of saying that to me, they should have been saying that to the president, not asking me to join them on their sidebar plan,” Ms. Haley told Norah O’Donnell of CBS News. “It should have been, go tell the president what your differences are and quit if you don’t like what he’s doing. But to undermine a president is really a very dangerous thing, and it goes against the Constitution and it goes against what the American people want. And it was offensive.”

Ms. Haley, a former South Carolina governor who stepped down as Mr. Trump’s United Nations envoy a year ago, gave the interview as part of the rollout of her new book, “With All Due Respect: Defending America With Grit and Grace,” to be released on Tuesday. Her account comes even as others are emerging about the debates within Mr. Trump’s circle through the House impeachment inquiry and the publication of a book by an anonymous senior administration official.