changed the query for findUserDNs to fetch all the user dns