[Solved] LDAP Sync - error populating syncables — AddChannelMember: Unable to add the user as a member of the channel

Summary
When performing an LDAP sync from the system console, it send back an error message saying:

error populating syncables — AddChannelMember: Unable to add the user as a member of the channel.

I’ve been trying to find any information in the mattermost.log regarding what user or channel this might be related to, but I’m unable to find any specifics.
Also this might be related to another issue we are experiencing where some specific users are not synced to the “AD Groups” in Mattermost.

Steps to reproduce
Mattermost 9.8.0 (Enterprise Edition)
Go into system console → Authentication → AD/LDAP → Press AD/ LDAP Synchronize Now

Expected behavior
That it would just work and not spit out errors.

Observed behavior
I can see this error message from the system console:

error populating syncables — AddChannelMember: Unable to add the user as a member of the channel.

This error message is from the mattermost.log:

info  [2024-09-19 14:54:41.633 +02:00] LDAP Sync Phase                               caller="ldap/ldap_sync_job.go:312" worker_name=EnterpriseLdapSync job_id=6e1xuhda57gibyw79rp8mjd45y job_type=ldap_sync job_create_at="Sep 19 12:54:28.422" current_phase="github.com/mattermost/enterprise/ldap.(*LdapSyncWorker).phase10SyncGroupMembersToChannelsAndTeams-fm"
error [2024-09-19 14:54:41.653 +02:00] Failed job                                    caller="ldap/ldap_sync_job.go:520" worker_name=EnterpriseLdapSync job_id=6e1xuhda57gibyw79rp8mjd45y job_type=ldap_sync job_create_at="Sep 19 12:54:28.422" error="LdapInterfaceImpl.Syncronize: error populating syncables, AddChannelMember: Unable to add the user as a member of the channel."

Solved it by upgrading to 9.11.2 :slight_smile:

Yay! Glad to hear the upgrade solved your issue, Kevin! Thanks for following up to let us know!