Registration role

Benjamin Melançon - May 27, 2007 - 01:27

Registration role lets an administrator select a role to automatically assign to new users. The selected role will be assigned to new registrants.

[For a module that lets the user choose their role on registration, see rolesignup.]

Be sure this role does not have any privileges that should not be given out to just anyone who registers. Because we shouldn't give away any real abilities above an authenticated user by default, this module really has only two known useful applications:

  1. If you want to assign all people who sign up after (or before) a certain time to a role to distinguish them-- simply set the roles as appropriate at the appropriate time.
  2. If you have multiple sites with a shared user database table (for instance with the single signon module), and you want to assign users a role based on the site at which they register.

Drupal roles exist primarily for access permissions, but modules such as mass contact also use roles act on a group users.

Registration role is based on a code snippet by Pauly Jura. (It actually does less than the snippet, but it is a module and has a settings administration page!)

This is a very lightweight module which does not install any database tables. Created and maintained by Agaric Design Collective. In memory, my father John Melançon.

Releases

Official releasesDateSizeLinksStatus
5.x-1.22007-Aug-037.58 KBRecommended for 5.xThis is currently the recommended release for 5.x.
4.7.x-1.12007-Jun-097.24 KBRecommended for 4.7.xThis is currently the recommended release for 4.7.x.
Development snapshotsDateSizeLinksStatus
5.x-1.x-dev2007-Jun-197.57 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
 
 

Drupal is a registered trademark of Dries Buytaert.