WARNING: This page is about a different car, the 2010 Pontiac G5 and 2010 Chevrolet Cobalt. However, it is still accessible from the selected car via links, so may be relevant.
Connect the harness to the switch.
Fig 1: Identifying Sunroof Control Switch
Courtesy of GENERAL MOTORS CORP.
Install the sunroof control switch (2) to the metal housing in the headliner.
Press the bezel to the headliner to engage the clips.