⚡ Only 300 spots remaining • Closes in 2d 14h 32m
Security compliance made easy. This workflow lists all users in your Google Workspace directory and checks their last login time. Any user inactive for more than 90 days is added to a report sent to the IT admin for license cleanup.
This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.
This is an exclusive blueprint. Copy the JSON below to use it.
PRO TIP
Always test your workflow in a development environment before pushing to production.
{
"nodes": [
{
"parameters": {
"dayOfMonth": [
1
]
},
"name": "Monthly Check",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"resource": "user",
"operation": "getAll"
},
"name": "Get Users",
"type": "n8n-nodes-base.googleAdmin",
"typeVersion": 1,
"position": [
450,
300
]
},
{
"parameters": {
"conditions": {
"dateTime": [
{
"value1": "={{$json[\"item\"][\"lastLoginTime\"]}}",
"operation": "olderThan",
"value2": 90,
"unit": "days"
}
]
}
},
"name": "Inactive > 90 Days?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
650,
300
]
},
{
"parameters": {
"toEmail": "[email protected]",
"subject": "Inactive User Flagged: {{$node[\"Inactive > 90 Days?\"].json[\"primaryEmail\"]}}",
"html": "={{'User ' + $node[\"Inactive > 90 Days?\"].json[\"primaryEmail\"] + ' hasn\\'t logged in since ' + $node[\"Inactive > 90 Days?\"].json[\"lastLoginTime\"]}}"
},
"name": "Notify Admin",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2,
"position": [
850,
250
]
}
],
"connections": {
"Monthly Check": {
"main": [
[
{
"node": "Get Users",
"type": "main",
"index": 0
}
]
]
},
"Get Users": {
"main": [
[
{
"node": "Inactive > 90 Days?",
"type": "main",
"index": 0
}
]
]
},
"Inactive > 90 Days?": {
"main": [
[
{
"node": "Notify Admin",
"type": "main",
"index": 0
}
]
]
}
}
}To use this, copy the JSON above and paste it directly onto your n8n canvas.
Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.