native query for User and Group