Is it the actual sun roof or the plastic mouldings around it? I ask as several members have reported issues with the plastics making noise and they are usually fixed with felt tape or by the dealer (if its still under warranty). If its the sun roof itself, check the mounts as they can come loose.
Welcome to the forum!