WARNING: This page is about a different car, the 2003 Saturn LW300, 2003 Saturn LW200, 2003 Saturn L300, and 2003 Saturn L200. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Removing & Installing Sunroof Switch
Courtesy of GENERAL MOTORS CORP.
Connect the electrical connector to the switch.
Rotate the switch into the opening and press into place until fully seated.