Skip to content

Conversation

@come-nc
Copy link
Contributor

@come-nc come-nc commented Feb 27, 2025

  • Resolves: #

Summary

When a subadmin of a group opens user list, if the group is not backed in database or LDAP (SAML for instance), disabled user list is not accessible.
This fixes it by counting enabled and disabled users independently of the backend for subadmin, and limits the user count to 999 for performance reasons.

Checklist

@come-nc come-nc added the 3. to review Waiting for reviews label Feb 27, 2025
@come-nc come-nc added this to the Nextcloud 32 milestone Feb 27, 2025
@come-nc come-nc self-assigned this Feb 27, 2025
@come-nc come-nc changed the title Fix/fix disabled user list for saml subadmin Fix disabled user list for SAML group subadmin Feb 27, 2025
@come-nc come-nc requested review from a team, blizzz, skjnldsv, sorbaugh and yemkareems and removed request for a team February 27, 2025 15:40
@come-nc come-nc requested a review from blizzz March 3, 2025 17:17
@come-nc come-nc force-pushed the fix/fix-disabled-user-list-for-saml-subadmin branch from 0de1e1f to 52872ae Compare March 4, 2025 17:05
@come-nc come-nc requested a review from a team as a code owner March 4, 2025 17:05
Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@come-nc
Copy link
Contributor Author

come-nc commented Mar 6, 2025

/backport to stable31

@come-nc
Copy link
Contributor Author

come-nc commented Mar 6, 2025

/backport to stable30

@come-nc
Copy link
Contributor Author

come-nc commented Mar 6, 2025

/backport to stable29

come-nc added 3 commits March 10, 2025 11:30
If too many users return -1 as for LDAP so that link is shown

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc force-pushed the fix/fix-disabled-user-list-for-saml-subadmin branch from c157af2 to c59400d Compare March 10, 2025 10:30
@come-nc come-nc merged commit e8b90c8 into master Mar 10, 2025
190 checks passed
@come-nc come-nc deleted the fix/fix-disabled-user-list-for-saml-subadmin branch March 10, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants