Automation library · Data collection

Handle GDPR data subject requests with Microsoft Graph

Started by another system calling it, and works across Excel and Outlook. It hands the judgement calls to a local model. 20 steps, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: a local model

20 stepsMedium: a working afternoon
0Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 2Model 2Logic 8Service 8

The steps in the order they run, from what starts it.

  1. 1DSAR Webhook TriggerWebhookStarts it
  2. 2Ollama ModelLm OllamaModel
  3. 3Validate and Prepare DSARCodeLogic
  4. 4Generate Cover Letter (Basic LLM Chain)Chain LlmModel
  5. 5Create eDiscovery CaseHttp RequestService
  6. 6Search SharePoint + OneDriveMicrosoft Share PointService
  7. 7Build GDPR Report DocumentCodeLogic
  8. 8Create eDiscovery Search (All Mailboxes)Http RequestService
  9. 9Merge Email + SP ResultsMergeLogic
  10. 10Convert Report to BinaryCodeLogic
  11. 11Trigger Statistics EstimateHttp RequestService
  12. 12Aggregate and Sanitize ResultsCodeLogic
  13. 13Archive Report to SharePoint GDPR LibraryMicrosoft Share PointService
  14. 14Log DSAR to Compliance RegisterMicrosoft ExcelService
  15. 15Notify DPO for Review (NOT Data Subject)Microsoft OutlookService
  16. 16Wait for Estimate to CompleteWaitLogic
  17. 17Merge A – SP Archive + Excel LogMergeLogic
  18. 18Merge B – (SP+Excel) + DPO EmailMergeLogic
  19. 19Fetch eDiscovery StatisticsHttp RequestService
  20. 20Respond 200 AcceptedRespond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
20, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Excel, Outlook
Model
a local model

Questions

What does it need to run?

An n8n account, plus your own Excel and Outlook accounts, and a key for a local model. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls a local model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 20 steps before you point it at anything that matters.