Add attachment object type and permissions to the corresponding XMLs.