Don't mess with Disney's Agents of Marvel.

A federal court in California approved Disney and Marvel's request for a subpoena forcing Google to help identify the leaker of a trailer for Avengers: Age of Ultron, according to court documents filed in a California federal court and obtained Thursday by Mashable.

Marvel Studios on Tuesday requested access to information, including an IP address, regarding a Google Drive account of a user that goes by "John Gazelle," where it's believed the trailer was posted, according to the filings. The request was granted Wednesday, and Google has been ordered to produce the information in question at a San Francisco law firm on Nov. 18.

Disney sent Google a takedown notice on Oct. 22, citing the Digital Millennium Copyright Act, that the file must be removed, according to the filing. It was not immediately clear whether the file in question was merely the teaser footage or perhaps an entire early cut of the film, though people close to Disney told Mashable that it's most likely just the trailer.

Mere minutes after a trailer of the Avengers sequel was leaked two weeks ago, security personnel seized the editing room where the official trailer was being produced and ordered employees to step away from their computers, Mashable has learned. Officials then checked the employees' computers for evidence of the unauthorized leak — a bit of life imitating art, as a scene in Marvel's Agents of S.H.I.E.L.D. the night before portrayed a similar situation as security at a Hydra installation attempted to catch a S.H.I.E.L.D. double-agent red handed.

The company responded by releasing a high-definition version of the trailer, which it had to scramble to prepare, as the asset had not yet been completed. Disney believes it knows who is responsible but has not identified the person nor has it commented officially on the status of its investigation.

While the trailer leak was bad enough — Disney/Marvel and ABC had hoped to first show it during an episode of Marvel's Agents of S.H.I.E.L.D., which could use the boost — a leak of the entire film could be a disaster. Lions Gate's Expendables 3 bombed in theaters when it was released in July after a high-definition version of the movie was posted on sites that traffic in pirated films. The Avengers, the biggest movie of 2012, raked in $1.52 billion in worldwide ticket sales.

Walt Disney Studios did not immediately return messages seeking comment from Mashable on the investigation Thursday.

In addition to the takedown notice, Disney is now asking the court to force Google to hand over the I.P. address associated with "Gazelle's" YouTube and Google+ accounts, according to the court filing.

Here's Disney's request for the subpoena:

Marvel's request for a subpoena of Google.

Here is a supporting statement from Marvel's security chief:

Marvel head of security's declaration in support of subpoena request.

And the subpoena, as granted:

Subpoena to Google for user "John Gazelle."