Module Description
Registration role lets an administrator select a role (or multiple roles) to automatically assign to new users. The selected role (or roles) will be assigned to new registrants.

Be sure these roles do 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 a few known useful applications:


* 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.
* If you have multiple sites with a shared user database table, and you want to assign users a role based on the site at which they register.
* If you want people who register themselves to have a distinct role from users invited by an administrator.
* If paired with a custom or contrib token system to restrict registration.
* If you want to make some fields on a content creation forms required for new users with the help of required_by_role module so existing or selected users without that role can skip filling values for these fields.
* If you want a "regular user" role which can have permissions which are not inherited by other roles, as authenticated user role's permissions are. This can be useful for a "Request publication" content moderation transition which regular users should have but editor users don't want to see a button for.

Or undoubtedly you can come up with your own creative uses!

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

Originally 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!)

See Auto-assign role module for a more comprehensive take on role assignment, including allowing a user to select their own role.

Registration role is a very lightweight module which does not install any database tables.

Project Usage
5139
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
The module aims to automatically assign selected roles to new users during registration while ensuring that no unauthorized privileges are given out.
Data Name
registration_role

OPENAI CHATBOT

OPENAI CHATBOT

14:27:05
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.