It is only necessary to lower the headliner. Only do those steps in the headliner replacement procedure that will lower the headliner enough to gain access to the part. Refer to
Headlining Trim Panel Replacement.
Disconnect the sunroof harness electrical connectors.