Create and write ir.attachments with superuserid