How to restrict moderators to only access a limited set of users? I have 2 user roles: Moderator and Company. Each Moderator has a set of companies; for example:


Moderator A owns Company d, e, anf f
Moderator B own Company g, h, and i


When moderator A logs in, I want that moderator can only see Company d, e, and f. I want to use a view.

How can I achieve this? How can I restrict each moderator to see those companies (which, I repeat, are user accounts) they own?
If moderators are creating the Company nodes themselves, you will probably be best off with the Content Access module.

If Company nodes are created by administrators, you could use the Node access user reference field to reference the moderators. They would then get the necessary view permissions.

Let me know if I missed your question.