Follow the steps below to query a foreign worker:
Go to the Core module, click Query Setup and click New.
Enter the Query ID and Query Name, e.g. Foreign worker
Click Save, enable Use Custom Query, and click the three-dotted button.
Type formula as Personal.IdentityTypeId IN ( 'FIN', 'FIN(EP)' )
Click Save and Apply.
