Converting users,groups to ES