Researchers warn that documents hosted in the cloud might not be out of reach for ransomware actors and that while they’re harder to permanently encrypt due to the automated backup features of cloud ...
While I have not put these systems into use myself, I know that Microsoft's Share Point product is supposed to do just what you are asking for, IIRC.