trust relationship between 2 domain

Irfan Mughal 1 Reputation point
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

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,511 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Allen Xu_MSFT 13,576 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.