Skip to main content
2 of 2
added 4 characters in body
gsr51
  • 332
  • 2
  • 11

Excluding users from People Picker

SharePoint 2010

I recently used the following command to target a specific Active Directory Organizational Unit set of users.

stsadm -o setsiteuseraccountdirectorypath -path "OU=My Employees,OU=User Accounts,OU=New Structure,DC=corp,DC=mydomain,DC=net" -url https://mysite

This worked well, but soon realized that Contractors are placed in a slightly different OU. Their path looks like: OU=My Contractors,OU=User Accounts,OU=New Structure,DC=corp,DC=mydomain,DC=net

I discovered that users in this path could not login to SharePoint.

So my question is, how can I exclude certain paths or include more than one? My main goal is to avoid including Service Accounts which are located in an OU all their own. Like this: OU=Service Accounts,OU=User Accounts,OU=New Structure,DC=corp,DC=mydomain,DC=net

Thank you.

gsr51
  • 332
  • 2
  • 11