Let's say I have 6 or 7 users that are subusers of a particular user. What happens to them when the parent user is either blocked or deleted? Or as an admin do I have to block / delete the subusers and then block / delete the parent?

CommentFileSizeAuthor
#3 cascading_subusers-681962-3.patch5.81 KBblakehall

Comments

osman’s picture

I did a quick test, and wanted to share my experience:

  1. Blocked the parent account first, subuser was not effected.
  2. Deleted the parent account, subuser was not effected.

Has anyone have different experiences?

I would like to have administration page to modify the existing relations within the parent and subuser accounts. I'll open a ticket for that thou.

Thanks,

jeffreyvddb’s picture

Could it be possible to add the following functionality: When you have the 'administer subusers' perm, you can edit the basic information of a subuser. Could it be possible to add a feature that you can block and/or delete a subuser? This way, the parent can manage 'their' subusers.

Also, I think it should be nice to block subusers when the parent user is blocked. Same for deletion: if a parent user is deleted, the subusers need to be deleted also. Or they should be placed in another role.

blakehall’s picture

Status: Active » Needs review
StatusFileSize
new5.81 KB

Here's a patch for attempting to solve at least the first part of this problem.

It handles blocking, unblocking, role changes, and deleted (configurable) users.

As it stands, with this patch, when parent users are blocked, unblocked or have their roles changed the same changes are applied to subusers. For deletes there is an added configuration option on the settings form to choose between: Do Nothing, Block the Subusers, Delete the Subusers. It would be nice to also add an option to transfer the subusers to a configurable role when they're deleted.

I can see arguments for each of these (not just user deletion) being configurable, but this seemed like a good enough first pass. What do other folks think?

add1sun’s picture

Title: What happens when a parent user is deleted? » Allow changes to parent user to cascade to subusers
Component: Documentation » Code
Category: support » feature

Just updating the title and categories. :-)

blakehall’s picture

Status: Needs review » Fixed

Committed to 6.x-1.x.

jhrizz’s picture

Nice! Does this include group memberships? I will download and play asap! Thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.