Adjust viewability of content based on the value of a field for a specific user For my website, I have a view (created using the Views module), let's call it View1, that displays content types that have field of user entity references (as in, it's a select list with all the users for the website on there).

I have a separate view (Views module), let's call it View2, that is used by non-admin users. I would like that view to be populated by content types that have been assigned to them by the admin. The admin uses the select list mentioned above to assign users to a certain user. 

Is there a way to filter content types in View2 so that it only displays content that has been assigned to you from View1?
You can just create non-admin view which display all given content types, then users can see specific content types based on their role permissions. This can be achieved by adding Nodeaccess.

For example:


user1 has role ct1
user2 has role ct2
assign view permission Nodeaccess:


ct1 role can view ct1 type, but not ct2
ct2 role can view ct2 type, but not ct1
to extend the access using field references, try: Node access node reference,

create a view which lists ct1 &amp; ct2 and users will see the right content based on their roles.


You other few options to investigate:


in your non-admin view configure relationships, so field can point to the right content type (also check: Bundle Name Reference + EVA)
in your users's View, create sub-views where you can override the fields (if your Style is set to Fields),
create multiple views for each content type and implement Viewfield, so admin can assign the view based on the its value,
create a non-admin view with rendered entity Style, create a template, write a logic in preprocess function and assign to the template variable.