How to retrieve employees linked to specific Createdby value?

Hello everyone,

My safe has "Employees" items. Each employee has metadata such as “User M-Files” and “manager” (employee list).

I would like to filter (in a view) the objects created by employees whose current user is the manager.

How to do this ?

Should I write a script? If yes, I understand that I need to retrieve the "created by" value of the current object (ok) then browse the "employees" to find the one which has this value like "USer M-Files": how to browse objects and of a certain type?
(in vbscript)

THANK YOU