for similar functionality see Role Delegation

RoleAssign specifically allows site administrators to further delegate the task of managing user's roles.

RoleAssign introduces a new permission called assign roles. Users with this permission are able to assign selected roles to still other users. Only users with the administer access control permission may select which roles are available for assignment through this module.

Background

It is possible for site administrators to delegate the user administration through the administer users permission. But that doesn't include the right to assign roles to users. That is necessary if the delegatee should be able to administrate user accounts without intervention from a site administrator.

To delegate the assignment of roles, site administrators have had until now no other choice than also grant the administer access control permission. But that is not advisable, since it gives right to access all roles, and worse, to grant any rights to any role. That can be abused by the delegatee, who can assign himself all rights and thereby take control over the site.

This module solves this dilemma by introducing the assign roles permission. While editing a user's account information, a user with this permission will be able to select roles for the user from a set of available roles. Roles available are configured by users with the administer access control permission.

Install

  1. Copy the entire roleassign directory, containing the roleassign.module and other files, to your Drupal modules directory.
  2. Log in as site administrator.
  3. Go to the administration page for modules and enable the module.

Configuration

  1. Log in as site administrator.
  2. Go to the administration page for access control and grant assign roles permission to those roles that should be able to assign roles to other users. Notice that besides the assign roles permission, these roles also must have the administer users permission.
  3. Go to the administration page for role assign and select those roles that should be available for assignment by users with assign roles permission.
  4. For each user that should be able to assign roles, go to the user's account and select a role with both the assign roles and the administer users permissions.

Usage

  1. Log in as a user with both the assign roles and the administer users permissions.
  2. To change the roles of a user, go to the user's account and review the assignable roles and change them as necessary.

See also RoleAssign project page.