Washington (CNN) An appeals court said Tuesday that President Donald Trump violated the First Amendment by blocking users on Twitter.

The 2nd US Circuit Court of Appeals upheld a New York judge's ruling and found that Trump "engaged in unconstitutional viewpoint discrimination by utilizing Twitter's 'blocking' function to limit certain users' access to his social media account, which is otherwise open to the public at large, because he disagrees with their speech."

"We hold that he engaged in such discrimination," the ruling adds.

The judges on the appeals court concluded that "the First Amendment does not permit a public official who utilizes a social media account for all manner of official purposes to exclude persons from an otherwise-open online dialogue because they expressed views with which the official disagrees."

The challenge to Trump's unprecedented use of Twitter in office came from seven individuals he blocked, as well as the Knight First Amendment Institute, which argued that the President's personal account is an extension of his office.

Read More