I'm looking for a solution that will allow me to restrict which taxonomy terms either a user or roll can use.

I've already found the Taxonomy Roles module, this limits the categories but I need it to limit all the way down to individual terms within a category.

Anybody have any solutions or suggestions? Basically we're building RSS feeds from these terms and want to limit which term each user can use so they don't post content into other RSS feeds.

Comments

joachim’s picture

Subscribing.

You could use hook_form_alter to remove some of the terms from the taxonomy widget.

jgknight’s picture

I'm looking for a module to do it. We will have some people admining the site who don't do php or code so a module with admin settings is what we need.

edit:

Alltal in the IRC pointed out this module
http://drupal.org/project/tac_lite

seems to do the job incase anyone else is looking.

jp.stacey’s picture

This is an old comment, but it gets high Google rankings so it's worth adding this, I think. The module you suggest does the opposite of what you want:

  1. TAC Lite and other taxonomy access modules control access to content using taxonomy. That means: you add taxonomy terms to a piece of content, and then Drupal decides whether or not a user with a particular role can see the content based on those terms
  2. What you want is to control access to taxonomy using permissions. That means: you configure role permissions to determine whether or not a user with a particular role can see certain taxonomy terms or vocabularies when they're editing content

Here's a post on groups.drupal.org about taxonomy access and access taxonomy. It gives a good side-by-side comparison of some of the options available. To stop certain users seeing certain taxonomy terms, you might want Term Permissions.

--
J-P Stacey, software gardener, Magnetic Phield

jordotech’s picture

For D7 I added the same category field to the user then checked them in my hook_form_alter() to modify the available options.

drupalfan81’s picture

This is a great post and I'm wondering if someone knows the answer to this question. I have never had the need to use Taxonomy terms in this way, but I am currently working on a website and would like to do this (if possible). Is there a way to restrict taxonomy terms to each user, i.e. the taxonomy terms added by user A are only seen by user A. For example I have a content type called clothing items.

I want my members to be able to add unlimited clothing items. Now I have a field on that item which is a term reference field to a taxonomy term called "type". User A may want to add a new clothing item piece of content. He will tag the type field with "Tshirt" or "Long Pants". I want only these terms to be displayed to this user and no other user. Basically it's like a private taxonomy term list. So when the user starts to fill in the autocomplete field, only the values he has previously entered will come up and nothing else.

Does this make sense? Anyone know how to do this?