Updating Drupal Auto Assign Role Module
The Auto Assign Role module of Drupal is designed to provide an automatic role assignment to newly created user accounts. It will also allow users to choose their own role if permitted by the Drupal site administrator. This module can also be used to provide paths that will trigger a specific user role when an account is created.
A new version of the Auto Assign Role module has been released so I updated my 6.x-1.11 version to 6.x-1.2.
Here are the steps in upgrading this module:
- From the Linux/Unix console, download the new Auto Assign Role module from the Drupal.org website using the
wgetorfetchcommand. - Extract the autoassignrole-6.x-1.2.tar.gz file
- Backup the old Auto assign role module
- Replace the old autoassignrole codes with the new autoassignrole codes
- Login to your website as
administratorand go to the Module list,Administer -> Modules - Uncheck Auto Assign Role then click Save configuration button
- Click Uninstall and uninstall Auto Assign Role
- Go back to the Module list and check Auto Assign Role
Note: The version should now be 6.x-1.2 - Click the Save configuration button to install and activate the new version of Auto Assign Role
$ wget http://ftp.drupal.org/files/projects/autoassignrole-6.x-1.2.tar.gz
$ tar xzvf autoassignrole-6.x-1.2.tar.gz
$ mkdir autoassignrole-old $ cp -Rp your/path/to/www/sites/all/modules/autoassignrole/. autoassignrole-old/
$ rm -rf your/path/to/www/sites/all/modules/autoassignrole $ mv autoassignrole your/path/to/www/sites/all/modules/.
Since this module could affect the security of your site, it is very important to also perform the following steps to make sure that this upgrade does not compromised your site's security:
- Review Auto Assign Role settings, go to
Administer -> User Management -> Auto assign role - Review User Permission settings, go to
Administer -> User Management -> Permission - You can also try creating/registering new user to check if Auto assign role is working properly.
Related posts:

Post new comment