How can I filter form records based on the department of the currently logged in user

Hi everyone,

FO provides two functions for querying “All Purchase Requests” and “Purchase requisitions prepared by me”. Now we want to add a new menu item to show all purchase requests submitted by all users in the same department as the current login user.

What shall I do? Do I need to create a new query? Or I need to create a new security privilege?