Students can apply for permission to study (residence permit) from within Sweden via the Migration Board (Migrationsverket) or at the nearest Swedish Embassy or consulate in your home country before leaving. This is usually a rather time-consuming matter so please apply immediately after receiving the Letter of Admission.