BS-7163
Handle write permissions when exporting an artifact