Hey everybody, it's been a few years since i've written anything for drupal so forgive me if i sound a bit outdated here. But what i'm needing is a module that will allow multi-tier users. So for example i'm working on a project that will allow a company to register and then the employees of that company register.

So the employees would need to be connected to a particular company and within that i'd need to have different roles. So employee, manager, supervisor, director, C-level all within a given company. My first thought would be to just create simple roles by those names and just assign them as needed.

But that's not going to work or at least i'm not sure how it would work considering the manager for example would need to manage his employees and then the supervisor will need to manage his managers and the managers employees and so on. Also there will be more then one company within the application. So you can't have a manager of company A even knowing that employees from company B even exist.

I tried searching the forums and couldn't find anything but i'm not sure my search terms would be correct. So forgive me if this is a question that's already been asked a hundred and twelve times.

If there isn't a module out there already for it i can create one but i'd rather not reinvent the wheel if i don't have to.

Thanks.

Comments

_

First, since this question has nothing to do with module development or coding, I've moved it to the appropriate forum.

As for your question, there's a couple of different ways to do it, but I find the og module the simplest. Alternatively, you can organize this hierarchically using taxonomy but that will require more complex configuration. See http://drupal.org/node/200631 for the basics of how to do it that way (it's an older tutorial, but the process is basically the same). There's also the http://drupal.org/project/administerusersbyrole module which might be useful.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Possible answer to part of your question

There is a possibility you could use the Invite module and Organic Groups module. Create a specific role for a manager (giving them permission to invite users (their employees) to register for your site).

There may be a way for them to automatically be registered into a specific role, through the Invite module. Not sure if they will automatically be assigned to a specific Organic Group (company) at registration...

Best of luck!

Thanks guys, i'll look into

Thanks guys, i'll look into those options, i noticed there was a "registration code" module, i was going to use that to place the employees in there respective companies. So each company would get a particular registration code to use. Now of course that means i'd have to tweak that module to accomplish this. but i'm not going to get something that fits perfectly without any coding.

_

I'm not sure why you'd have to break the module. If you mean the https://drupal.org/project/regcode module, it works with both roles and og as well as provides a dynamic criteria.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.