When you apply for a residence permit, you can apply for a Finnish personal identity code at the same time. In such a case, in your residence permit application you should request registration in the Finnish Population Information System.