Hello,

I am looking for the ability to create a new user role such as 'sales-associate' and allow that user role to create other users which is easy with Drupal's built-in permissions. The problem is that Drupal just lets you specify whether a user can create or modify other users but doesn't allow you to specify that they can only create or modify user's of a specific role. For instance, I want the 'sales associate' to only be able to create users with a role of 'business' but not any other role. Right now, the default Drupal permission seems to be all or nothing.

This role would only be assigned to someone who is known to the site owner and working on the site and not for random users who simply sign up through the site. An administrator will create these 'sales-associate' users.

I find many references to limiting the types of content a particular role can create but nothing in regards to creating other types of users. If there is any module out there that someone may know of could you please pass that info along?

Thanks

Comments

lomo’s picture

There are at least a couple modules that do this sort of thing.

One is the Administer Users by Role. Another which might fit your use case is U Create. Yet another candidate is Role Assign. And I'm sure there must be others. :-)

Hope that helps.

Please report back about your experience... once you've figured out a solution.

See you at the Drupalcon!

jastylr’s picture

Thanks so much for the lightning-fast response. I will give these modules a look and report back as to whether they met my needs. Thanks again!

RKS’s picture

Did either meet your needs? I need exactly what you posted about.

mosgeorges’s picture

5 year after that question, I am in the same situation.
DId somebody find an answer the "
Limit the ability to only create users of a certain role(s)" question ?
I've been testing
- administeruserbyrole
It does the same :
Users that have been restricted to administrate users with a particular role do not create users with that role. But users with no role.
And I had customized the form for the specific user type that must be administered. But only username, password and email appear.

Any help????

zeezhao’s picture

nblack69’s picture

In my case I have Administrator, 2 limited roles and another limited administrator(limited admin don't have access to all permissions)

I wanted to let the limited admin to create users but I won't let him to be able to edit/create anything on roles or set Administrator without limitation role to a user.

This helped me : https://www.drupal.org/project/administerusersbyrole

Worked exactly for what I needed.

Here is the README.txt : https://git.drupalcode.org/project/administerusersbyrole/blob/7.x-2.x/RE...

First I wasn't able to make it work because I gived the user permission " Administer users " !!! Don't need to do that will be assigned from the module but with limitations !!!

I hope this helped you.

Have a nice day!