Skip to content

Removing a user from a group lists group the user is not member of #1181

@schweigisito

Description

@schweigisito

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Once a user gets removed from a group the dropdown list displays all groups which exist on the system.

E.g. the test user "Dennis" is member of

    "mail": "dennis@example.org",
    "memberOf": [
        {
            "displayName": "users",
            "groupTypes": [],
            "id": "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"
        },
        {
            "displayName": "unix-lovers",
            "groupTypes": [],
            "id": "75bc3882-dd94-11ef-ad60-335f3df6cef3"
        },
        {
            "displayName": "basic-haters",
            "groupTypes": [],
            "id": "a4eb2c12-dd94-11ef-9ebe-eb96f938d517"
        },
        {
            "displayName": "programmers",
            "groupTypes": [],
            "id": "ce4aa240-dd94-11ef-82b8-4f4828849072"
        }
    ],

but the dropdown list shows also e.g. "visi-lovers".

Reproduction Steps

  1. List users in Admin module
  2. Select a user and try to remove him from a group
  3. Check the drop down list

=> It contains all groups

Expected Outcome

Only lists groups the user is member of.

Actual Outcome

All groups are listed while it could/should only show those the user is member of.

Removing a user from a group where it is not member of throws a notification saying the membership had already been removed.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions