To get a residence permit, you must fill in an application and book an appointment with the police.
If you apply before you arrive in Norway, or if your employer or client applies for you, you do not need to book an appointment until you're told to do so.
If you’re granted a residence permit, the immigration authorities will let the Tax Administration know that you need a Norwegian identification number (national identity number or D number).