Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Anonymous (not verified) on
Hello,
I have an account_1 with role_1 (capacity to create other accounts), role_2, role_3, role_4.
In the form to create account, role_1, role_2, role_3, role_4 appear in the list.
account_1 create an account_2 with role_1, role_2, role_3.
When account_2 wants to create an account, he has also the choice between all the roles, not only the role he as the right.
So, in the form to create account, account_2 see role_1, role_2, role_3, role_4.
Is it possible for account_2 to see (and select if necessary), only the role he has itself, in my example role_1, role_2, role_3 ?
Comments
solution
hi,
you should try these modules to assign specific roles by users.
role assign module::https://www.drupal.org/project/roleassign
administer user by role module::https://www.drupal.org/project/administerusersbyrole
and if you want to allow non-admin user to assign roles then you can use this module::
https://www.drupal.org/project/ucreate
Thanks.
Thanks.
Going from link to link, i've found these 3 modules :
https://www.drupal.org/project/administerusersbyrole
https://www.drupal.org/project/role_delegation
https://www.drupal.org/project/roleassign
I'll try them to find the one which is better for me.