The follow solution is working for me Mileidys Gonzalez Prieto Code:<bean id="userSearch" class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch"> <constructor-arg index="0" value=""/> <constructor-arg index="1" value="(&(sAMAccountName={0}) (| (memberOf=CN=Group1,OU=Groups,OU=Site,DC=mydc,DC=org) (memberOf=CN=Group2,OU=Groups,OU=Site,DC=mydc,DC=org) (memberOf=CN=Group3,OU=Groups,OU=Site,DC=mydc,DC=org) ))" /> <constructor-arg index="2" ref="contextSource" /> </bean>