I am currently wondering if this is the way to do it and would therefore like some input.

The idea is that I want to show content to specific users. However this can not be done by creating a view with categories because it may not be all in a group that I want to show the content to.

That is why I am thinking of extracting a list of users (where companies have filtered by their request) and implementing them as tags on the content. I will therefore have total control over who's going to see the content.

Does anyone know of any limitations that might hinder this setup? I do not want the tags to show on the content and to be automatic generated from the list. Is this possible?

  • No there is not unless you set one.
    – niksmac
    Commented Dec 29, 2012 at 12:08

1 Answer 1


It's a simple you must follow this 2 Steps :

First Step :

  1. Create a views that will list your users that you want to reference

  2. Add a Reference display to your view make your filters then Save

Second Step :

  1. Download entity reference module
  2. Add new entity reference field "Users that will access this content"
  3. Chose the target type : User
  4. Choose the mode "Views: Filter by an entity reference view"
  5. Select the views that you've build on the first Step (the display type must be Reference and not page or block)

Now you will be able to select the users like a tags on content type but without any access permission

To restrict the Permission to the referenced user : download the user reference access module

Then configure it under the user entity reference field settings of your content type

  • Okay been looking into it a bit more. Is entity reference the best way to go if the amount of users that are going to be tagged above 200? Commented Dec 29, 2012 at 19:53
  • In addition I do not want companies to be able to see user ID's Commented Dec 29, 2012 at 21:02
  • To not show user's id , just hide it on manage display on your content type
    – sel_space
    Commented Dec 30, 2012 at 17:33
  • 1
    if they are above 200, and that 200 have the same role or same profile , then a small custom code will be more user friendly , try to post it in another question and I will reply to it
    – sel_space
    Commented Dec 30, 2012 at 17:38
  • 1
    or also you can use Organic groups .
    – sel_space
    Commented Dec 30, 2012 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.