U.S. District Court Judge Naomi Reice Buchwald issued the ruling in a lawsuit filed by the Knight First Amendment Institute at Columbia University.
"This case requires us to consider whether a public official may, consistent with the First Amendment, 'block' a person from his Twitter account in response to the political views that person has expressed, and whether the analysis differs because that public official is the President of the United States," the judge wrote in her ruling.
"The answer to both questions is no."
The Knight First Amendment Institute filed the lawsuit in July 2017 on behalf of seven people who had been blocked from the president's @realDonaldTrump Twitter account after they had individually "tweeted messages critical of the President or his policies in reply to tweets from @realDonaldTrump."
Since being block, they were unable to see the president's tweets that have included policy proposals and cabinet appointments. The blocked individuals have had to use workarounds or go through third-party accounts to view the president's tweets, according to the lawsuit.
"These limitations are cognizable injuries-in-fact," the lawsuit contended. "The individual plaintiffs' ability to communicate using Twitter has been encumbered by these limitations (regardless of whether they are harms cognizable under the First Amendment)," according to the suit.
In her ruling, Judge Buchwald rejected arguments from the president's layers "that the First Amendment does not apply in this case and that the president's personal First Amendment interests supersede those of plaintiffs."
Buchwald issued a "declaratory judgment" on behalf of the plaintiff, writing, "no government official -- including the President -- is above the law, and all government officials are presumed to follow the law as has been declared."