setting createdBy in sync