How to Add Taxonomy Vocabulary in Rules when User Registers Using the Drupal Rules module, I'm trying to create a rule whereby when a user registers, a taxonomy vocabulary is created. 

So far, I've done the following:

EVENT: After saving a new user account

ACTIONS: Create a new Entity, value Taxonomy vocabulary. I enter a name using tokens but it doesn't seem to accept tokens for the machine name. The machine name obviously has to be unique to each vocabulary.

Just to give you a bit more info, each member registering is a Tutor (needs to be the taxonomy vocabulary) and each Tutor will create multiple Students (taxonomy terms). 

Can anyone help me with this please? I'm using Drupal 7. Thank you :)
I have checked the rules and I couldn't find a Data Selector for user name. But if you are fine with achieving the same using custom code then you can use the following code.

function YOURMODULENAME_user_insert(&amp;$edit, $account, $category){
   $vocabulary = new stdClass();
   $vocabulary-&gt;name = $account-&gt;name;
   $vocabulary-&gt;machine_name = "tutor_".$account-&gt;uid;
   $vocabulary-&gt;hierarchy = 0;
   taxonomy_vocabulary_save($vocabulary);
}