Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Registration role

5,782 sites Security covered Drupal 8–11 Registration ecosystem
View on drupal.org

This module automatically assigns selected roles to new users upon registration. It's useful for distinguishing user groups, managing access for specific user types, or integrating with other modules for advanced functionality.

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:

  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, and you want to assign users a role based on the site at which they register.
  3. If you want people who register themselves to have a distinct role from users invited by an administrator.
  4. If paired with a custom or contrib token system to restrict registration.
  5. 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.
  6. 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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.2 Stable 8–11 Feb 13, 2025