You are here

README.txt in RoleAssign 8

Same filename and directory in other branches
  1. 6 README.txt
  2. 7.2 README.txt
  3. 7 README.txt
ROLEASSIGN
==========

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 permissions' permission may
select which roles are available for assignment through this module.

This module was developped by TBarregren and is now maintained by salvis.
Drupal 7 port by salvis.
Drupal 8 port by svendecabooter and tkuldeep17.


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 permissions'
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 permissions' 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 Permissions page (people/permissions) and grant the '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 RoleAssign (people/permissions/roleassign)
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.

Beware: Granting the 'administer users' permission to users will allow them to
modify admin passwords or email addresses. The User Protect module can help to
prevent this. RoleAssign will protect user 1's name, email, and password fields,
but it won't protect any other accounts.


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.


BEWARE
------

'Administer users' is and remains a security-critical permission that must NOT
be given to untrusted users! RoleAssign will keep your assistant admins within
their limits, but if you introduce alternative ways to edit users, assign roles,
or give permissions (like the "Administration: Users" view in the popular
Administration Views module), then you may be opening up ways for your
assistant admins to gain additional privileges.

File

README.txt
View source
  1. ROLEASSIGN
  2. ==========
  3. RoleAssign specifically allows site administrators to further delegate
  4. the task of managing user's roles.
  5. RoleAssign introduces a new permission called 'assign roles'. Users
  6. with this permission are able to assign selected roles to still other
  7. users. Only users with the 'administer permissions' permission may
  8. select which roles are available for assignment through this module.
  9. This module was developped by TBarregren and is now maintained by salvis.
  10. Drupal 7 port by salvis.
  11. Drupal 8 port by svendecabooter and tkuldeep17.
  12. BACKGROUND
  13. ----------
  14. It is possible for site administrators to delegate the user
  15. administration through the 'administer users' permission. But that
  16. doesn't include the right to assign roles to users. That is necessary if
  17. the delegatee should be able to administrate user accounts without
  18. intervention from a site administrator.
  19. To delegate the assignment of roles, site administrators have had until
  20. now no other choice than also grant the 'administer permissions'
  21. permission. But that is not advisable, since it gives right to access
  22. all roles, and worse, to grant any rights to any role. That can be
  23. abused by the delegatee, who can assign himself all rights and thereby
  24. take control over the site.
  25. This module solves this dilemma by introducing the 'assign roles'
  26. permission. While editing a user's account information, a user with this
  27. permission will be able to select roles for the user from a set of
  28. available roles. Roles available are configured by users with the
  29. 'administer permissions' permission.
  30. INSTALL
  31. -------
  32. 1. Copy the entire 'roleassign' directory, containing the
  33. 'roleassign.module' and other files, to your Drupal modules directory.
  34. 2. Log in as site administrator.
  35. 3. Go to the administration page for modules and enable the module.
  36. CONFIGURATION
  37. -------------
  38. 1. Log in as site administrator.
  39. 2. Go to the Permissions page (people/permissions) and grant the 'assign roles'
  40. permission to those roles that should be able to assign roles to other users.
  41. Notice that besides the 'assign roles' permission, these roles also must have
  42. the 'administer users' permission.
  43. 3. Go to the administration page for RoleAssign (people/permissions/roleassign)
  44. and select those roles that should be available for assignment by users with
  45. 'assign roles' permission.
  46. 4. For each user that should be able to assign roles, go to the user's account
  47. and select a role with both the 'assign roles' and the 'administer users'
  48. permissions.
  49. Beware: Granting the 'administer users' permission to users will allow them to
  50. modify admin passwords or email addresses. The User Protect module can help to
  51. prevent this. RoleAssign will protect user 1's name, email, and password fields,
  52. but it won't protect any other accounts.
  53. USAGE
  54. -----
  55. 1. Log in as a user with both the 'assign roles' and the 'administer users'
  56. permissions.
  57. 2. To change the roles of a user, go to the user's account and review the
  58. assignable roles and change them as necessary.
  59. BEWARE
  60. ------
  61. 'Administer users' is and remains a security-critical permission that must NOT
  62. be given to untrusted users! RoleAssign will keep your assistant admins within
  63. their limits, but if you introduce alternative ways to edit users, assign roles,
  64. or give permissions (like the "Administration: Users" view in the popular
  65. Administration Views module), then you may be opening up ways for your
  66. assistant admins to gain additional privileges.