Kaffeeundcode
n8n Flow-Bibliothek
n8n Workflow 01.06.2026

Flow Arbeitsbereich

Device Encryption Audit

Flow prüfen, Nodes verstehen, JSON importieren und Credentials sauber anpassen.

Workflow Diagramm

auto-generiert
graph LR
    N0(["⚡ Weekly Audit"])
    N1["🔧 Get Unencrypted Devices"]
    N2["🔧 Create CSV"]
    N3[["📤 Send Report"]]
    N0 --> N1
    N1 --> N2
    N2 --> N3

    classDef trigger fill:#f59e0b,stroke:#b45309,color:#000
    classDef action fill:#292524,stroke:#44403c,color:#e7e5e4
    classDef logic fill:#1e1b4b,stroke:#4338ca,color:#c7d2fe
    class N0 trigger
    class N1 action
    class N2 action
    class N3 action

05_Device_Encryption_Audit.json

{
    "name": "05_Device_Encryption_Audit",
    "nodes": [
        {
            "parameters": {
                "rule": {
                    "interval": [
                        {
                            "field": "weeks",
                            "triggerAtDay": 1,
                            "triggerAtHour": 8
                        }
                    ]
                }
            },
            "name": "Weekly Audit",
            "type": "n8n-nodes-base.schedule",
            "typeVersion": 1,
            "position": [
                250,
                300
            ]
        },
        {
            "parameters": {
                "authentication": "predefinedCredentialType",
                "nodeCredentialType": "microsoftGraphOAuth2Api",
                "requestMethod": "GET",
                "url": "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=isEncrypted eq false",
                "options": {}
            },
            "name": "Get Unencrypted Devices",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 3,
            "position": [
                450,
                300
            ],
            "credentials": {
                "microsoftGraphOAuth2Api": {
                    "id": "YOUR_CREDENTIAL_ID",
                    "name": "Microsoft Graph Account"
                }
            }
        },
        {
            "parameters": {
                "operation": "toFile",
                "fileFormat": "csv",
                "options": {}
            },
            "name": "Create CSV",
            "type": "n8n-nodes-base.spreadsheetFile",
            "typeVersion": 1,
            "position": [
                650,
                300
            ]
        },
        {
            "parameters": {
                "fromEmail": "security@yourorg.com",
                "toEmail": "ciso@yourorg.com",
                "subject": "Weekly Encryption Audit",
                "text": "Attached is the list of devices that are not encrypted.",
                "attachments": "data"
            },
            "name": "Send Report",
            "type": "n8n-nodes-base.emailSend",
            "typeVersion": 1,
            "position": [
                850,
                300
            ]
        }
    ],
    "connections": {
        "Weekly Audit": {
            "main": [
                [
                    {
                        "node": "Get Unencrypted Devices",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Get Unencrypted Devices": {
            "main": [
                [
                    {
                        "node": "Create CSV",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Create CSV": {
            "main": [
                [
                    {
                        "node": "Send Report",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}