Unable to add particular users as a member to public channel

Summary
Unable to add particular users as a member to public channel

Steps to reproduce
How can we reproduce the issue (what version are you using?)
If we try to add a user as a member to particular channel we are unable to find the user in search box where we add the users as a members to group . However user is visible at the Mattermost users section within system console . The issue is present for only few users .

Expected behavior
We should be able to add the user as a member to particular channel . we should be able to find the name of the user in search box of add members section .

Observed behavior
We can search user through the Mattermost users section from system console but unable to search him while using option add members.

but when we try to add this user to particular public channel “CMS” we are not able to find his name in search box while adding this user as a member.

Earlier we had defined limit of 300 Max users per team but this issue started when we crossed user limit of 300 so we changed it to 500 now , so now there is no issue for the users we are adding after this change . I am not aware if this issue is related to parameter ,

change

Do those users have access to the team where the channel is located?
Are you using Bleve or Elasticsearch? This could be related to this report Not all persons inside a channel are shown anymore - if you have details on the questions shared by our staff, this can help us diagnose the issue further (Not all persons inside a channel are shown anymore - #7 by jesse & Not all persons inside a channel are shown anymore - #8 by agnivade).

This was resolved.
The issue was to do with the Team membership of the user. He was not part of the current Team in which the Channel was created.
After adding the member to the team, we were able to add him to the channel.

(Resolved in Jun '21)