Contextual filter on record view

HI there,

I'm facing an issue while developing a custom contextual filter.

I have a module named "ck_department" that is linked to the accounts. On the department I have a relate field on users.

What I want is to display all the accounts that are linked to a department who is assigned to the current connected user.

I can do it with Postman as you can see : 

I try to do this way as explained in the documentation : 

https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_11.0/Architecture/Filters/

How can I do this? Can you give me some clues ?

Best regards,

Enes