Share files search user to share with him with the same domain

I have nextcloud installation that has ldap server I want to make user share files with only users with the same domain name so I changed the ldap filter and it works well with talk app search but in sharing file app the search retrieve users not with the same domain how this I am stuck in it for 10 hours I revised user plugin very well and dumped the result returned from it it is correct but finally in the webview I have unexpected result with users with different domain is tihs issue or what if there is someone can help me