To be sure, McCourry did not encounter this drug at a rave or Burning Man. He was given MDMA in a controlled environment under the supervision of psychologists who also served as “guides,” leading him through the process of self-discovery. The MDMA used in this study were not bought off a dealer in some sketchy, dark alley either. MAPS was given state permission to have a chemist concoct the medication that was to be administered to McCourry. And it had life-changing consequences.
Source