nextcloud/impersonate

Doesn't seem to work for group admins

Closed this issue · 6 comments

I see that the ability to let group admins to use the impersonate feature was added long ago in #25, however I do not see the option for impersonate when logged in as a group admin like I do when logged in as a general administrator. Is that feature is not compatible with the current version of Nextcloud, or am I missing something?

Screenshot_20230610_021858

+1
I don't the Impersonate icon for the Group Admins
Nextcloud v26.0.2

I am also experiencing this issue. Group admins cannot 'impersonate' their group users. Right now only super users can do it.

Nextcloud v27.1.3
Impersonate v1.14.0

Group admins are not allowed to impersonate by default, only admins are. You can add group admins into a different group, and allow this group to impersonate in Admin Settings –> Additional Settings.

@blizzz - that is exactly what I have done, and it does not work. Here are the steps to reproduce:

EDIT: it turns out the 'User admin' group wasn't correctly set in the Administration Settings > Additional Settings > Impersonate section. Doing that fixed the issue

  1. Create a group called 'User admin' (used for impersonate admin privileges) and a group called 'My Group' (used to decide who to impersonate)
  2. Add user A to the group 'User admin', and make user A an admin of group 'My Group'
  3. Login as user A
  4. Go to the 'Users' page, and click the 'My Group' group.
  5. Try to impersonate a user in 'My Group'
  6. Note that the 'impersonate' option is not there

Can this issue please be re-opened?

I cannot reproduce your issue on 27. By chance, you did not limit the app to certain groups on the app settings, https://your.nc.srv/index.php/settings/apps/installed/impersonate ?

I just checked and no - it is not limited to groups:

Screen Region 2023-11-13 at 21 07 57

Oh wait - I double checked my Impersonate settings in Admin settings > Additional settings and the 'User admin' group had somehow been removed. Adding it in again and I can confirm everything works.

I appreciate the help debugging blizzz, thanks! 👍