Skip to content

[Bug]: Accounts page - Group GIDs shown instead of names in groups column #52130

@brueckner

Description

@brueckner

⚠️ This issue respects the following points: ⚠️

Bug description

We're using SocialLogin in combination with Keycloak to externally manage users and groups. Since there are different groups with identical names, we have to use Keycloak's technical group IDs when creating the groups in NC. After creation, we're setting the group name to the human readable version as provided by Keycloak.

With the recent update to 30.0.9, the accounts page is now using the gid instead of the group's name, making it hard to see which groups a user belongs to.

Image

Oddly enough, the dropdown shows the actual labels, same as the sidebar.

Image

We've checked the release notes and found this PR, which might be related to this issue: #51782

More specifically this part, where the gid is used as id and as a name for the group:
https://github.com/nextcloud/server/pull/51782/files#diff-ab529eede9c79bab1c6362047a62f396fed0118faeaad199dbc4183e8b0ae60eR756-R757

this.availableGroups.push({ id: gid, name: gid })

We're wondering if this is intentional. We get that this is not an issue for regular groups that are created using the UI, since you can't specify gid/name separately, but I'm sure we're also not the only ones using SocialLogin and external identity providers either.

Steps to reproduce

  1. Create a group with name "Test" (which will set its' gid to "Test" as well)
  2. Set the name to "Something else"
  3. The groups column on the accounts page will show "Test"

Expected behavior

The group column should display the names of the groups, not their gid. Just as it does in the sidebar or the dropdown when assigning a group to a user.

Nextcloud Server version

30

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Metadata

Metadata

Assignees

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions