I have a SharePoint 2016 farm installed on DomainA. Users from DomainB are trying to access the site but getting "Sorry, this site hasn't been shared with you" message as expected.
When I open people picker then I don't see users from DomainB. I can't even share a folder on this server to users in DomainB. When I right click on folder and go to "sharing" screen then I can see the domain DomainB.com is there along with DomainA.com but when I type user's name from DomainB then it is not found.
Two level domain trust between these domains has been created by Infrastructure team or so they say (these two are actually forests). I even ran the following PowerShell but same issue i.e. can't see users from other domain in people picker.
stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:DomainA.com;domain:DomainA.com;domain:DomainB.com" -url "https://myportal"
I have also seen some articles mentioned following command but I don't know what is the login/password in this command? Is this domain admin account from DomainB or some other account?
stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:DomainA.com;forest:DomainB.com,DomainB\login,password" -url "https://myportal"