changing the query for fetching user DNs