Today, one of my client approached me and requested me to make provision in his SharePoint environment for providing access to the users which are in their trusted domains.
so, here is the scenario and the solution…
There is a Domain One.Domain.net and a second domain as Two.Domain.com, it has a two-way trust enabled amongst them.
SharePoint is in One.Domain.net and the name of server is SP2016
Central Admin site URL is : http://SP2016.one.domain.net:9515
The Intranet URL is : http://SP2016.one.domain.net
To enable People picker to browse to trusted domain, I ran the following commands in elevated SharePoint Shell.
STSADM.exe -o setapppassword -password Paswd@12$Sp
stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:One.Domain.net,One\ReadonlyAdminOne,ReadOnlyAdminOne_Password;forest:Two.Domain.com,two\ReadonlyAdminTwo,ReadOnlyAdminTwo_Password" -url http://SP2016.one.domain.net:9515
stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:One.Domain.net,One\ReadonlyAdminOne,ReadOnlyAdminOne_Password;forest:Two.Domain.com,two\ReadonlyAdminTwo,ReadOnlyAdminTwo_Password" -url http://SP2016.one.domain.net
After 5 min, the people picker was able to identify and add users from trusted domain Two.Domain.com