Foreigners and Borders Service
The Foreigners and Borders Service - SEF (Portuguese: Serviço de Estrangeiros e Fronteiras) was the police service integrated into the Ministry of Internal Affairs, whose mission was to enforce immigration and asylum in Portugal, in accordance with the provisions of constitutional, legal and governmental guidelines. Among other duties, the SEF was the agency responsible for border control and the issuing of residence permits to foreign nationals legally residing in Portugal.
Source: Wikipedia — Foreigners and Borders Service (CC BY-SA 4.0)