2008-04-01

Setting up an import filter in a Custom User Profile import soruce in SharePoint 2007

When you want to configure your user import you will most likely want to filter out certain type of account; those that are disabled, system accounts, etc.

The following two filter will let you do this:

1) Import all user accounts except those that are disabled

(&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))

2) Import all users except thos belonging to a certain group:
(&(objectCategory=person)(objectClass=user)(!(MemberOf=cn=SystemUsers,ou=TheDepartmen,dc=MyDomain,dc=no)))

Combining these to (after first included all system account into the SystemUsers group) should give you only those users that should have user profiles.

No comments: