LPS-43669 Include permissions in the attachments during the upgrade