The LMIA application can be used to get a temporary work permit, or to help you with a permanent residence application, or both.
In some cases, extending the work permit of an existing employee may require LMIA. It may also be needed to help a foreign worker in Canada change jobs to a new employer.