Using Promise for Getting All Groups.