trust relationship between 2 domain

Irfan Mughal 6 Reputation points
2021-02-28T07:15:26.227+00:00

Hi,

we r implementing SharePoint 2019, we have to domains and want to get user details from both domain. do we need to build trust relationship between 2 domain. or is there any specific requirement to get users from 2 different domains.
Thx

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,866 Reputation points
    2021-03-01T08:07:00.487+00:00

    Hi @Irfan Mughal ,

    For your requirement, you have to set up SharePoint on one domain and build trust relationship between two domains. Then you need to run the below PowerShell command:

    stsadm -o setproperty -pn peoplepicker-searchadforests -pv "forest:DomainA.com;forest:DomainB.com,DomainB\login,password" -url "Your webapp url"  
    

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.