I need to find a way to let specific roles create users, but only a limited number.

In my case we have organizations buying subscriptions to our website that include memberships for 5 of their employees. Right now we have it so that they can buy the membership through Ubercart, but we need them to be able to create 5 (and only 5) user accounts of a particular role.

Ideas are welcome!

Thanks,
Laura

Comments

CleanCutRogue’s picture

I don't think there is a way you can do this with existing modules or with core Drupal. I think this will have to be a specialty module created just for this purpose. When a user is created, it normally doesn't track WHO created it. When I look at my database from any given site, I can't tell which users I created and which users created their own account. So you would have to create a module which keeps track of this, and limits the further creation of accounts.

ltrain’s picture

Thanks for your replies.

I have also been looking at Groups as a way to solve this - is there a way to create a group automatically when someone creates a user account, so that they can then create new users and add them to their group?

I need to have all the employees from various organizations grouped together and would prefer not to have to do it manually.

Then perhaps I can limit group size...

silverwing’s picture

Maybe you can set the attribute for 5 users and then hook into something to allow only that many user creations?

~silverwing - not a coder; just a thought.

_____________________________________________
zinzinny - more than tv (alpha)| MisguidedThoughts | showcaseCMS