Was former President Obama the “scandal free,” top 10 greatest president he claimed to be as he exited the White House?

To his aides and most in the media, the answer has been a hearty “yes.”

[Related: Obama: 'We have not had a major scandal']

The View’s Joy Behar said, “President Obama, for eight years, was completely scandal-free.” NBC’s Tom Brokaw said, “He’s been scandal free, frankly, in the White House. We haven’t had that what for a while.”

But now, to counter that legacy campaign, biographer Matt Margolis has penned a book detailing some 29 “scandals” under Obama in, “The Scandalous Presidency of Barack Obama.”

It reviews some of the bigger affairs, such as the Benghazi attacks, and littler ones, like his stonewalling of the media, in an effort to chip away at Obama’s stain-free legacy.

And it also details the ways the media sometimes played along -- or played dead -- in a pattern that has been flipped in the coverage of President Trump.

“Obama’s supporters in the media, academia, and the grassroots of the Democratic Party are invested in the idea that his presidency was an unparalleled success, and that he was the archetype of presidential ethics. Nothing could be further from the truth, as the following pages prove, but if they repeat their lies often enough, perhaps others will believe them,” wrote Margolis.

He also hopes that it keeps a focus on Obama’s administration and its effort to help 2016 Democratic presidential candidate Hillary Rodham Clinton.

[Related: James Comey book: President Obama and Loretta Lynch 'jeopardized' the Hillary Clinton email investigation]

Asked to list the worst scandal under Obama, Margolis told Secrets, “There are many serious scandals, and therefore it’s hard to say which is the biggest scandal, but I believe Obama’s spying on the Trump campaign, which is starting to be fully unraveled now, will likely prove to be one of the biggest.”

But the media is also his target, said the the co-author of the critical best-seller, The Worst President in History: The Legacy of Barack Obama. “The purpose of the free press is to hold our elected leaders accountable, but they were asleep at the wheel during Obama’s two terms. Had they done their job during the Obama years, perhaps presidential historians and ‘experts’ wouldn’t be ranking Obama as a top-tier president,” he said.

“Many of Obama’s scandals covered in my book make Watergate look like a high school prank gone wrong by comparison. Yet, last year, the state of Illinois honored Obama by making his birthday a state holiday. Can you imagine if California had made Richard Nixon’s birthday a state holiday after he resigned from the presidency?” he added.

His publisher is Bombardier Books which also just published Fraud and Fiction: The Real Truth Behind Fire and Fury, from the Examiner’s Eddie Scarry. It shredded the anti-Trump book from Michael Wolff that was gobbled up by the mainstream media.

With that book, Margolis said the media is continuing with its history of treating Democratic and Republican presidents differently.

“The same people who treat Michael Wolff’s Fire and Fury as gospel despite it being discredited garbage are the same people who continue to dismiss Obama’s real scandals as much ado about nothing. If Donald Trump abuses his authority while in office he should be held accountable, but how can we have an honest conversation about corruption in government if we don’t hold our leaders to the same standards regardless of party?” he said.