Direct proof of use
Official U.S. military imagery documents the GAU-21/A in Afghanistan on July 26, 2012, when a Marine with HMH-362 was photographed mounting the heavy machine gun aboard a CH-53D Sea Stallion over Musa Qal'ah district in Helmand province. The DVIDS caption says the squadron moved troops and cargo to and from the battlespace in support of missions.
A second DVIDS image from May 15, 2013 shows a Marine HMH-461 crew chief operating a GAU-21 .50-caliber machine gun over Helmand province during an aerial operation in support of Operation Enduring Freedom.
Sources: HMH-362 Musa Qal'ah GAU-21/A Image, Operation Nightmare GAU-21 Image
Marine aviation role
Marine Corps reporting from Camp Leatherneck in January 2011 described UH-1Y Huey aircraft in Afghanistan as normally carrying door guns that included a GAU-16/A or GAU-21 .50-caliber machine gun and a GAU-17/A 7.62 mm machine gun. The same report described CH-53E Super Stallions in Afghanistan as armed with three GAU-21 or XM-218 .50-caliber machine guns while inserting and extracting coalition forces across Regional Command Southwest.
NAVAIR had reported in October 2010 that HMLA-169 was the first squadron to deploy with the GAU-21 mounted on UH-1Y Hueys after accelerated fielding for Marine Corps requirements. The NAVAIR report did not name Afghanistan, but the subsequent Camp Leatherneck reporting and DVIDS images place GAU-21-equipped Marine aircraft in the Afghanistan theater.
Sources: 3rd MAW Afghanistan Aviation Weapons, NAVAIR GAU-21 UH-1Y Deployment, HMH-362 Musa Qal'ah GAU-21/A Image, Operation Nightmare GAU-21 Image
Documented pattern
The available official sources support a helicopter-mounted force-protection and fire-support role rather than a separate ground-weapon role. In Afghanistan, the GAU-21 appears in source-backed material as a door, window, or ramp weapon on Marine rotary-wing aircraft operating in Helmand province.
The sources identify U.S. Marine aviation units as the documented users. They support use by U.S.-led coalition forces in Afghanistan, but they do not establish Taliban or Afghan government operation of the GAU-21.
Sources: 3rd MAW Afghanistan Aviation Weapons, HMH-362 Musa Qal'ah GAU-21/A Image, Operation Nightmare GAU-21 Image