You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: User Group Admin Privileges [$5] #3362
I would like to see the ability to fine tune what group admins can actually do. For example, if I create an Accounting or Engineering group admin I would like to disable their ability to delete users. Possibly only granting Gadmins the ability to reset passwords, add local shared folders, etc.
I searched a bit here on git but didn't see anything. Just a thought, thanks for all you guys do!
#1212 Group Admin: Should be able to delete from group, not from system
Today, a group admin can add new users within their group. That works well.
But, the user can delete ANY user in their group from the system completely. That should not be. There should be a configurable option set by the overall admin where the group admin can/cannot delete users from the system when deleting from the group. Also, a group admin should never be able to delete a user from the system that is a member of another group. These use cases should help explain:
Example 1: user 1, user 2 and user 3 are added by the overall admin. user 1 is the group admin of group 1. user 2 and 3 are also members of this group. user 3 is also a member of group 2. user 1 deletes user 3 from group 1, but user 3 should still be a member of group 2, and the group 1 admin should not be able to delete user 3 from the system, only from their group. This is regardless of any configurable options mentioned above.
Example 2: user 1, user 2 and user 3 are added by the overall admin, and made members of group 1. user 1 is the group admin of group 1. The admin does not grant user 1 the right to delete users from the system when deleted from the group. user 1 removes user 2 from the group with a delete. user 2 is still a member of the system, but is no longer a member of any group. The overall admin can then delete the user if necessary, or assign other groups.
Example 3: user 1, user 2 and user 3 are added by the overall admin, and members of group 1. user 1 is the admin of group 1. The overall admin GRANTS user 1 the right to delete users from the system when deleted from the group. user 1 deletes user 2 from group 1, and since he is not a member of any other group, user 2 is deleted from the system.
Example 4: user 1 is the group admin of group 1. User 1 adds a new user to the system as a member of group 1. At a later time, user 1 can delete the added user from the group and possibly from the system following the configuration switch in Examples 2 and 3.
I too disabled/removed all group admins. I even found I had messed up the internal security of my system by being an "admin" and putting myself in a moderated group.
The result is the group admin could reset my password and take over everything... It seems obvious to me now, but less so back when I set things up. So watch out for miss-configurations like that one.
I'd like to know that as well. I've opened #1212, and since then I haven't used group admins, because they are just too dangerous to use. I have the feeling that sometimes new features seem more important than fixing essential issues.
IMO this is not a feature, but a matter of basic group administration and design. You can call it whatever you want, but at the moment it is not useable unless you don't care about your users' data.
@karlitschek I'd love to, but I'm a bit stressed for time. also, this group admin code is core code, which I don't know. I'd need help to learn and understand it, otherwise it would take me even more time.
So for now I cannot commit to coding any change.
Another problem is that the issues referenced here are not really the same problem. e.g. #1212 is different than the fine tuning issue described in the first comment of this issue.
As I have mentioned earlier, the fact that a group admin can delete a user (and the data) from the system, even, if that user belongs to another group and/or is a group admin as well, is highly unusual and dangerous. That's why I don't use group admins and neither does anyone I know who's running their own ownCloud installation.
ownCloud is a great project and I believe that some core devs understand the consequences of the current group admin implementation and will change it eventually.
If I understand well this is mainly about preventing subadmins to delete users from the system, at least as a first step.
Let's do a small step to move this forward design-wise.
The tasks would be as follows:
add a checkbox "subadmin_can_delete_user" in the admin page to configure subadmin's delete permission that defaults to true
modify the UsersController to disallow deletion of users if the user is not an admin (GroupManager->isAdmin($userId)) and the flag "subadmin_can_delete_user" is false
@AsavarTzeth I just extended my example and the last letter I used was C, so D was up. I should have used Gn and Un for groups and users, but I didn't know how to use subscript for the numbers n.
As I mentioned before, I'm happy with any solution that ensures a group admin cannot delete a user (and the data) from the system, if that user belongs to another group and/or is a group admin as well.
@interos99 mind telling us a little bit more about how you guys at the NGO are using subadmins ?
Somehow I start having the feeling that subadmin are being "misused" because ownCloud doesn't have any better way of achieving what you want.
Let's consider a new role "group admin" or "group membership admin". If we consider that groups are used like workgroups, you'd want the super-admin to create the said groups and specify someone who is able to add/remove people from their groups whenever they get added/removed to projects.
This means that the role is mostly about managing memberships and not emails/quotas/etc. So instead of having a "delete" feature it would only be "remove from my group".
Would that be more suitable ? 😄
In this case subadmins would be a completely different use case than group admins. (need to find better names for the roles)
Seems like there were other ideas related to "group management" but in an automatic fashion. Not directly related but still mentioning in case it can provide more inspiration to get closer to the actual use case you guys are thinking about: #8201
Someone suggested a new role "supervisor role", see #26723
As for "managing workgroups" where it's only about membership but not creating users, there's yet another variation here: #8201 (allowing users to create their own groups and add people there)
I am really irritated that this very obvious issue hasn't been fixed yet.
This is a real risk of data loss. It happened to us recently, where a group admin did not understand that deleting a user really and completely deletes him. Fortunately we have backups, but this is a glaring issue. It really shoud be given priority!
Still no fix or solution for this issue? :(
A group admin just wanted to remove a user out of a testgroup but deleted 30GB of data by mistake.
Most data was synchronized so we had a lot of luck .. Nevertheless it is a very dangerous privilege/issue and actually i unfortunately cant use the group admin function :(
If anyone stumbles on this and wants a quick fix, just modify /var/www/owncloud/settings/templates/users/part.userlist.php to wrap the "remove" table cell with an isAdmin. I just needed to keep my group admins from seeing the delete button on their users.
<?php if ($_['isAdmin']): ?>
<td class="remove"></td>
<?php endif; ?>
Activity
MorrisJobke commentedon Sep 22, 2013
cc @raghunayyar
RobinMcCorkell commentedon Aug 30, 2015
Merging several duplicate issues into this one:
#1212 Group Admin: Should be able to delete from group, not from system
RobinMcCorkell commentedon Aug 30, 2015
#7992 Group admin can change storage size of self created user
MorrisJobke commentedon Aug 30, 2015
I migrated the high label from #7992
encendedor commentedon Nov 3, 2015
Any news here? The topic exists now for more than two years. I disabled all group admin permissions temporarily as a work-around...
AsavarTzeth commentedon Nov 3, 2015
I too disabled/removed all group admins. I even found I had messed up the internal security of my system by being an "admin" and putting myself in a moderated group.
The result is the group admin could reset my password and take over everything... It seems obvious to me now, but less so back when I set things up. So watch out for miss-configurations like that one.
tessus commentedon Nov 3, 2015
I'd like to know that as well. I've opened #1212, and since then I haven't used group admins, because they are just too dangerous to use. I have the feeling that sometimes new features seem more important than fixing essential issues.
DeepDiver1975 commentedon Nov 3, 2015
So many people who want this feature .... but nobody is stepping up to actually do something about it ...
... looks like one has to wait longer
tessus commentedon Nov 4, 2015
IMO this is not a feature, but a matter of basic group administration and design. You can call it whatever you want, but at the moment it is not useable unless you don't care about your users' data.
karlitschek commentedon Nov 4, 2015
@tessus This is an open source community project. Feel free to submit a pull request for this feature.
tessus commentedon Nov 4, 2015
@karlitschek I'd love to, but I'm a bit stressed for time. also, this group admin code is core code, which I don't know. I'd need help to learn and understand it, otherwise it would take me even more time.
So for now I cannot commit to coding any change.
Another problem is that the issues referenced here are not really the same problem. e.g. #1212 is different than the fine tuning issue described in the first comment of this issue.
As I have mentioned earlier, the fact that a group admin can delete a user (and the data) from the system, even, if that user belongs to another group and/or is a group admin as well, is highly unusual and dangerous. That's why I don't use group admins and neither does anyone I know who's running their own ownCloud installation.
ownCloud is a great project and I believe that some core devs understand the consequences of the current group admin implementation and will change it eventually.
PVince81 commentedon May 13, 2016
If I understand well this is mainly about preventing subadmins to delete users from the system, at least as a first step.
Let's do a small step to move this forward design-wise.
The tasks would be as follows:
GroupManager->isAdmin($userId)) and the flag "subadmin_can_delete_user" is false7 remaining items
tessus commentedon May 21, 2016
@AsavarTzeth I just extended my example and the last letter I used was C, so D was up. I should have used Gn and Un for groups and users, but I didn't know how to use subscript for the numbers n.
As I mentioned before, I'm happy with any solution that ensures a group admin cannot delete a user (and the data) from the system, if that user belongs to another group and/or is a group admin as well.
PVince81 commentedon May 23, 2016
@interos99 mind telling us a little bit more about how you guys at the NGO are using subadmins ?
Somehow I start having the feeling that subadmin are being "misused" because ownCloud doesn't have any better way of achieving what you want.
Let's consider a new role "group admin" or "group membership admin". If we consider that groups are used like workgroups, you'd want the super-admin to create the said groups and specify someone who is able to add/remove people from their groups whenever they get added/removed to projects.
This means that the role is mostly about managing memberships and not emails/quotas/etc. So instead of having a "delete" feature it would only be "remove from my group".
Would that be more suitable ? 😄
In this case subadmins would be a completely different use case than group admins. (need to find better names for the roles)
PVince81 commentedon May 25, 2016
Seems like there were other ideas related to "group management" but in an automatic fashion. Not directly related but still mentioning in case it can provide more inspiration to get closer to the actual use case you guys are thinking about: #8201
PVince81 commentedon Nov 25, 2016
Someone suggested a new role "supervisor role", see #26723
As for "managing workgroups" where it's only about membership but not creating users, there's yet another variation here: #8201 (allowing users to create their own groups and add people there)
[-]Feature Request: User Group Admin Privileges[/-][+]Feature Request: User Group Admin Privileges [$5][/+]vasyugan commentedon Nov 10, 2019
I am really irritated that this very obvious issue hasn't been fixed yet.
This is a real risk of data loss. It happened to us recently, where a group admin did not understand that deleting a user really and completely deletes him. Fortunately we have backups, but this is a glaring issue. It really shoud be given priority!
Lockorocko commentedon Aug 13, 2020
Still no fix or solution for this issue? :(
A group admin just wanted to remove a user out of a testgroup but deleted 30GB of data by mistake.
Most data was synchronized so we had a lot of luck .. Nevertheless it is a very dangerous privilege/issue and actually i unfortunately cant use the group admin function :(
stale commentedon Sep 21, 2021
This issue has been automatically closed.
jasbroKBI commentedon Jan 12, 2023
If anyone stumbles on this and wants a quick fix, just modify /var/www/owncloud/settings/templates/users/part.userlist.php to wrap the "remove" table cell with an isAdmin. I just needed to keep my group admins from seeing the delete button on their users.