1

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?

1

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

https://stackoverflow.com/questions/1178248/sharepoint-ldap-filtering-of-people-picker-users

1

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>

Reference:

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/gg602075(v=office.14)

http://beginnerssharepointtips.blogspot.com/2013/03/restrict-people-picker-to-certain-group.html

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.