WARNING: This page is about a different car, the 2004 Buick Regal and 2004 Buick Century. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Sunroof Switch
Courtesy of GENERAL MOTORS CORP.
Connect the electrical connector to the switch.
Push the switch into the bracket until fully seated.