writeAccessAllowedFromAttachmentMenuOrThrow