Recent interest in phase change materials (PCMs) for non-volatile memory applications has been fueled by the promise of scalability beyond the limit of conventional DRAM and NAND flash memory . However, for such solid state device applications, Ge2Sb2Te5 (GST), GeSb, and other chalcogenide PCMs require doping. Doping favorably modifies crystallization speed, crystallization temperature, and thermal stability but the chemical role of the dopant is not yet fully understood. In this work, X-ray Absorption Fine Spectroscopy (XAFS) is used to examine the chemical and structural role of nitrogen doping (N-) in as-deposited and crystalline GST thin films. The study focuses on the chemical and local bonding environment around each of the elements in the sample, in pre and post-anneal states, and at various doping concentrations. We conclude that the nitrogen dopant forms stable Ge-N bonds as deposited, which is distinct from GST bonds, and remain at the grain boundary of the crystallites such that the annealed film is comprised of crystallites with a dopant rich grain boundary.