Andrés Villenas

Software Engineering, .Net Development, Sitecore, and more fun.

Sitecore 8.2 Update 7 and GDPR, part 3 - rights to access and data portability

Continuing with the series about the Sitecore 8.2 Update 7 and the GDPR, the next topic is the rights to access and data portability. It is described in the article 15 and 20 of the General Data Protection Regulation site.

The individuals have the right to access and receive the data concerning him or her. The sites and applications must provide a way to access and move the data to another controller, in a commonly used and machine-readable format. 

Sitecore can be configured to enable the individuals to see what personal data is processed and stored. Also, it can be configured to allow the subjects to have a copy of the personal data.

In the following snippet, you can see an example of how to extract the information stored for a specific contact.

var cursor = _repository.GetInteractionCursor(contactId, visitsToLoadPerBatch, maximumSaveDate);
var interactions = new List<VisitData>();
while (cursor.HasNextBatch)
{
  interactions.AddRange(cursor.GetNextBatch());
}

That's it for today.

Until the next post!