• We sell software on our site and have customers who purchase multi-user licenses. We’d like for them to be able to add a set number of users to our site and then revoke access if necessary.

    Ideally, it would be a sub-user of the master account but I understand WordPress isn’t built that way. So, I imagine all the people they add would just be added to one new role which handles extra users.

    I’m very familiar with WordPress, the Plugin API, etc.. but just wanted to know the best way to go about this and see if any plugins already exist (haven’t found any yet) for this type of functionality.

    If necessary, we can build our own but thought I would ask here first. Any direction is much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The multiuser capability would be build in to the software you are selling. Why do you want them to log-in to your website?

    I don’t understand your question!

    In any case if you want that to happen then you have to create a new table and manage the user > sub user from there!

    Thread Starter Brandon

    (@seofeed)

    We have them login to the site to ensure the software isn’t passed around. That way, we can check their user account for validity and proper credentials.

    Creating multi-users wouldn’t make sense in the software in our case. Seeming pretty obvious it’s going to be a matter of creating a new capability and going from there.

    I think what you want to accomplish is basically possible, but it’s going to take a good bit of work. If I were looking to do this, I would try to do it this way:

    1. Create a new role called “Software Licensees” (or whatever). This role would be used for the people that actually buy your software (the ones that should be able to add more users).
    2. Whenever a new user is assigned to that role, dynamically create a new role based on that user’s username (this is where new users created by that user should be automatically assigned).
    3. Grant the create_users capabilities to the “Software Licensees” role
    4. Build a function that hooks into the actions that fire when a new user is created. Set up that function to automatically assign any new users created by a “Software Licensee” to be assigned to their custom user role (the one that’s based on their username).
    Thread Starter Brandon

    (@seofeed)

    Thanks for the suggestions Curtiss! Our all users screen would be a mess with that solution but it sounds very feasible and almost ideal. Wish there was an easy way to track what users another user created. That would allow us not to have infinite roles. This is a tricky setup.

    It looks very much like a capability of Buddypress, to allow ‘group’ moderators.

    Did you have any luck with this? I’m looking to create something similar, but similar:

    A ‘parent’ user can create a ‘child’ (or sub-user). That’s relatively straightforward, but I’d like the parent user to be able manage their own sub-users (or at least see list of who they’ve added!

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to have users (any level) add new users?’ is closed to new replies.