How to create a view for logged in user? In user account (/admin/config/people/accounts/fields) I have a field that references to an entity: company.

I have a node-type, dossier, with a field that references the same entity as in user account: company.

How can I make a view where the logged in user only sees the user's own dossiers?

I tried a lot of things but nothing works. Sometimes the view is empty, sometimes the logged in user sees all the dossiers of the website.
I added an extra reference field to dossiers which refers to an user. In the view: add relationship to the referenced field and make it mandatory. Now it works. The logged in user sees only his files.