Skip to content

fix: join accounts_data instead of preferences when searching users - #55952

Merged
skjnldsv merged 1 commit into
masterfrom
fix/search-fallback
Oct 23, 2025
Merged

fix: join accounts_data instead of preferences when searching users#55952
skjnldsv merged 1 commit into
masterfrom
fix/search-fallback

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

Summary

When searching for users in groups (user management > select a group > filter users top right), the searchInGroup is used. Unfortunately this joining the users table, which LDAP or SAML users do not use.
Joining the accounts_data table allows us better matches and makes us compatible with other users backends

Changes

  • Old - joining group_user > users > preferences
  • New - joining group_user > accounts_data twice (displayname and email)

Checklist

@skjnldsvskjnldsv added this to the Nextcloud 33 milestone Oct 23, 2025
@skjnldsvskjnldsv self-assigned this Oct 23, 2025
@skjnldsv
skjnldsv requested a review from a team as a code ownerOctober 23, 2025 06:45
@skjnldsv
skjnldsv requested review from icewind1991, salmart-dev and sorbaugh and removed request for a teamOctober 23, 2025 06:45
@skjnldsvskjnldsv added the 3. to review Waiting for reviews label Oct 23, 2025
@github-project-automationgithub-project-automationBot moved this to 🏗️ In progress in 📁 Files teamOct 23, 2025
@skjnldsv
skjnldsv requested a review from come-ncOctober 23, 2025 06:55
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

@skjnldsv

Copy link
Copy Markdown
MemberAuthor

/backport to stable32

@skjnldsv
skjnldsvforce-pushed the fix/search-fallback branch 2 times, most recently from 7dd9cbc to 08e9f3dCompareOctober 23, 2025 06:58
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv

This comment was marked as resolved.

@skjnldsv
skjnldsv merged commit ada3b1a into masterOct 23, 2025
198 of 206 checks passed
@skjnldsv
skjnldsv deleted the fix/search-fallback branch October 23, 2025 10:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

4 participants

@skjnldsv@miaulalala@CarlSchwan@come-nc