Thursday 25 November 2010

How to add Users from another Domain to SharePoint 2010 and SharePoint 2007

When deploying a new SharePoint farm, Admins can often overlook the fact that their users maybe in another domain or forest. To resolve this problem SharePoint 07/1020 must be told where these users are and how to access them.

This can be done using the people picker property. This property must be set using stsadm. You must open Command Prompt (as Administrator) on your SharePoint server.

Then type : cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14(for 2010) and 12 (for 2007)\BIN

You are now ready to execute the command:

stsadm -o -setproperty -url "http" -pn "searchadforests" -pv "example.net",Domain\Username, Password

To get best results ensure that you use the commas. The URL is the URL of your Web App. Example.net shows where your domain name needs to be. You need to also make sure there are no spaces between the Username and password.

The account must be from the Domain you are trying to look up users from. That account should have appropriate permissions in order to find these users.

If you have successfully run the command then you get an "Operation Completed Successfully" message (sometimes this is not true but) you can test this by adding a user from the external domain.

2 comments:

  1. Hi Shak,

    I ran this command but still not able to search users from second domain. I got message "Operation Completed Successfully", any thoughts?

    Thanks,
    Tapan Desai
    tapan.desai@alkermes.com

    ReplyDelete
  2. hi tapan, did you get it to work? i still have the same issue.

    ReplyDelete