The attached patch provides three enhancements:

- Add a field "parent_id" and an array "parents" containing a recursive list of all parent id's to user objects.
- Alter the user_profile_form to change the user's parent user.
- Allow to define initial roles depending on the parent's roles.

I hope that this patch might be useful for you :-)

CommentFileSizeAuthor
subuser-tasmiro-enhancements.patch6.2 KBCybso

Comments

jerrydqcn’s picture

wo! this is exactly what i want. I'd like to thank the authors of both Subuser and this patch. I've been trying to get the function using other modules but never satisfied, until I found Subuser. After some time I was considering how it would be much better that i can change the parent of the subusers, ha, i'm so lucky to find -- it's already been here!

deejmer’s picture

With this patch, is one able to associate an account to a parent user, even if the account was not established by a parent user in the first place?