Take the tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to import accounts in specific OU's and not the whole Active Directory. I have created the connection to AD and everything is working well. I'm sure it is possible to import specific accounts in specific OU's using the 'User Filter' and creating new query clauses, here lies my problem. I have no idea on the syntax I should use.

Any help would be great, even a link to a good article/blog.

Thanks

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

There is some info here along with some additional links on the LDAP filters. http://support.microsoft.com/default.aspx/kb/827754

Here is another blog I found helpful: http://blogs.msdn.com/sumanc/archive/2007/06/28/moss-profile-search-ldap-query-to-remove-disabled-and-service-accounts.aspx

share|improve this answer
add comment

Funnily enough I was listening to a podcast from Todd Klindt yesterday and he was talking about a client which wanted to remove profiles for Conference and Meeting Rooms from the SharePoint User Profile Import Process.

He suggested using the AD Users and Computers MSC and using the AD saved query tool which sits at the top. I do remember using it a few years ago when I was playing around with MS Exchange. Anyway I will leave it to him to take you through it:-

http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=177

HTH

Regards Simon

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["        <li><a href=\"http://area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"http://careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2013 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.12.18.1246\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">SharePoint S", "ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2013 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.12.18.1246\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">SharePoint Stack Exchange works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </noscript>\r\n\r\n    <script type=\"text/javascript\">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-5620270-24']);\r\n        _gaq.push(['_set"], "copyright__copyright__copyright": [" the AD saved query tool which sits at the top. I do remember using it a few years ago when I was playing around with MS Exchange. Anyway I will leave it to him to take you through it:-\n\nhttp://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=177\n\nHTH\n\nRegards Simon\n\nshare|improve this answer\nadd comment\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}