Protect the content in a Shareflex application – MS Purview

Protect the content in a Shareflex application

Goal

Our goal is to protect a SharePoint Online Shareflex application, such as Contract Management, from accidental or malicious deletion or modification by users or the Shareflex Online Enterprise Application in Entra. We must protect the application content and code.

Result

It’s no longer possible to delete a contract record. Please see the error message.

Protect the content in a Shareflex application - MS Purview – Result

The only way to delete a contract is if the deletion is approved by a disposition workflow the following day (explained below).

We have ensured that it’s not possible to delete a library, for example, so all the coding is protected.

Protect the content in a Shareflex application - MS Purview – Result

 

MS Purview functions available to achieve our goals

  1. M365 retention policies
  2. M365 record management policies

Lets start with the retention policy.

M365 retention policies

We followed this guide and created the following retention policy linked to the Shareflex application.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

Protect the content in a Shareflex application - MS Purview – M365 retention policies

It took an hour to be enforced, not a week.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

Delete a document from a contract is possible.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

Delete a contract (SPO list items) is possible.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

Documents can be deleted from the SPO library as well.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

Its not possible to delete a library for example.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

The preservation hold library holds csv files for the deleted list items and it holds deleted documents.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

Right, it’s not possible to delete anything from the preservation library.

Protect the content in a Shareflex application - MS Purview – M365 retention policies

Concluding M365 retention policies

M365 retention policies protects the deletion of lists, libraries, and (sub) sites within the application. Next step is to protect content deletion with M365 record management.

M365 record management

Navigate to file plan and create a label

Protect the content in a Shareflex application - MS Purview – M365 record management

In below example we name the label with the value 10 years, but actually I want to use 1 day as retention period, this is a nice approach to protect the content and after approval it can be deleted after one day.

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

We use 1 day, after that day the item can be deleted (after approval), so we have one day to revert a hack for example.

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Create stages and assign reviewers

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

The label is published to one SP site holding the Shareflex Contract Management application.

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

By the way here is the retention label saved:

Protect the content in a Shareflex application - MS Purview – M365 record management

Lets apply the label to one of the libraries of Shareflex Contract, via library settings.

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Now we can add the retention labels to the documents pane in the Shareflex Contract interface.

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

The same label can also be applied to the contracts list protecting deletions here as well.

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

Then after a day the pending disposition workflow should start notifying the user set in the policy, the admin can then approve or reject the deletion of the documents and or contract (list item).

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

All the documents the user tried to delete are listed here:

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

But the item is not removed from the contract.

New test where we delete one document from the contract.

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

A second test where we delete a file from the SPO library

Protect the content in a Shareflex application - MS Purview – M365 record management

Protect the content in a Shareflex application - MS Purview – M365 record management

In default SPO and Shareflex the error message is not indicating the document is protected by Purview, this must be improved in the Shareflex interface.

We must wait one day to see how the disposition will work out.