Union leaders representing thousands of New York City apartment house doorpersons, superintendents and other workers have reached a tentative contract agreement with building owners.