WARNING: This page is about a different car, the 2007 Saturn Ion Red Line, 2007 Saturn Ion 3, and 2007 Saturn Ion 2. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Connecting Sunroof Control Switch Electrical Connector
Courtesy of GENERAL MOTORS CORP.
Connect the connector (2) to the sunroof control switch (1).
Rotate the sunroof control switch into the headliner and press to engage the clips.