Current issue in a LDAP scenario (also applies to other user managers):
- Only local users are stored in oc_users
- LDAP users are stored separately in mapping tables, the tables are LDAP specific
- No easy way to work with all users on SQL-level (repair steps, etc)
- On PHP level, additional round trips required to all user managers when doing user searches, for example for share autocomplete
Proposed solution:
Either reuse oc_users or provide new tables to store all users (and maybe groups too) that are known to this ownCloud instance. The table itself will have a "externalUserId" and "externalUserType" to be able to link it to other user-manager specific tables (ex: LDAP).
Ref: #19600 (comment)
@DeepDiver1975 @karlitschek @blizzz @icewind1991 @schiesbn @rullzer