We have done migration from one domain(ex:abc.com and ldap is pointing to abc.com) to another domain(ex:mnp.com and ldap is pointing to mnp.com).
ldap is working fine but when we are searching for the old users from people section we could see the old users but
we can't find any sites that users are associated to but when user logs in he can see the site and related data.
FYI: our objective is to do user mapping i.e if user "email@example.com" is member of site "test" with sitemanger role,we will make user "PpQqRr@mnp.com" a sitemanager of "test" site through a script(as both of the users are same) in order to do so we need to find the site that user "firstname.lastname@example.org" belongs to which we can't find from people section and
"siteService.listUserSites(oldAuthorityName)" is returning empty as well.