I'm still able to add users which are not imported via AD-Import in user profile service. enter image description here

enter image description here Is there any way to stop adding them in sites?


You need to configure people picker to search only specific OU in your AD directory. Have a look at this question


| improve this answer | |

As Marek said, you can limit People Picker to a certain OU in Active Directory.

If a Web application is using Windows authentication and the site user directory path is not set, the People Picker control searches the entire Active Directory to resolve users' names or find users, instead of searching only users within a particular organizational unit (OU).

To restrict People Picker to a certain OU in Active Directory, type the following command:

stsadm -o setsiteuseraccountdirectorypath -path <Valid OU name> –url <Web application URL>




| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.