G Suite Admin: Create, Update, and Get User
Automate Google Workspace user management with this n8n workflow. Learn how to create, update, and retrieve user information using the G Suite Admin node.
Overview
Demonstrates how to automate the user lifecycle in Google Workspace by creating, updating, and retrieving a user's details through n8n.
⚙️ Description & Use Case
This workflow demonstrates the fundamental user management operations—Create, Update, and Get—within Google Workspace (formerly G Suite) using the n8n G Suite Admin node. It provides a clear, step-by-step example of how to manage a user's lifecycle programmatically.
🔄 How It Works:
-
Trigger
- The workflow is initiated manually by clicking the 'execute' button.
-
Create User
- The first
G Suite Adminnode is configured with the Create operation. It creates a new user in your specified domain (n8n.ioin this example) with a first name, last name, username, and password.
- The first
-
Update User
- The second
G Suite Adminnode uses the Update operation. It takes the uniqueidof the user created in the previous step and updates a specific field—in this case, changing thelastNamefrom "Nat" to "Nate".
- The second
-
Get User
- The final
G Suite Adminnode performs a Get operation. Using the same userid, it retrieves the complete, updated user profile from Google Workspace, allowing you to verify that the changes were successful.
- The final
✅ Real-World Use Cases:
- Automated Employee Onboarding: Trigger this workflow when a new employee is added to your HR system to automatically create their Google Workspace account.
- User Profile Synchronization: Keep user details (like names, departments, or job titles) in Google Workspace synchronized with a master database or another application.
- Bulk User Updates: Modify the workflow to loop through a list of users from a spreadsheet or API to perform bulk updates, such as assigning them to a new organizational unit.
- Testing and Development: Quickly provision and modify test user accounts in a development environment without manual intervention in the Google Admin console.
Instructions
Basic steps
- Download workflow JSON
- Import into n8n
- Configure node parameters as needed
- Test and enable the workflow
💡 Tips
After importing, verify all connectors and credentials match your environment.
Preview
Workflow Visualization
Nodes
On clicking 'execute'
manualTrigger
G Suite Admin
gSuiteAdmin
G Suite Admin1
gSuiteAdmin
G Suite Admin2
gSuiteAdmin
Statistics
View full JSON structure
{
"nodes": [
{
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
240,
300
],
"parameters": {},
"typeVersion": 1
},
{
"name": "G Suite Admin",
"type": "n8n-nodes-base.gSuiteAdmin",
"position": [
440,
300
],
"parameters": {
"domain": "n8n.io",
"lastName": "Nat",
"password": "sjhdjsdhbajshdb",
"username": "nat",
"firstName": "Nathan",
"additionalFields": {}
},
"credentials": {
"gSuiteAdminOAuth2Api": "Google"
},
"typeVersion": 1
},
{
"name": "G Suite Admin1",
"type": "n8n-nodes-base.gSuiteAdmin",
"position": [
640,
300
],
"parameters": {
"userId": "={{$node[\"G Suite Admin\"].json[\"id\"]}}",
"operation": "update",
"updateFields": {
"lastName": "Nate"
}
},
"credentials": {
"gSuiteAdminOAuth2Api": "Google"
},
"typeVersion": 1
},
{
"name": "G Suite Admin2",
"type": "n8n-nodes-base.gSuiteAdmin",
"position": [
840,
300
],
"parameters": {
"userId": "={{$node[\"G Suite Admin\"].json[\"id\"]}}",
"options": {},
"operation": "get"
},
"credentials": {
"gSuiteAdminOAuth2Api": "Google"
},
"typeVersion": 1
}
],
"connections": {
"G Suite Admin": {
"main": [
[
{
"node": "G Suite Admin1",
"type": "main",
"index": 0
}
]
]
},
"G Suite Admin1": {
"main": [
[
{
"node": "G Suite Admin2",
"type": "main",
"index": 0
}
]
]
},
"On clicking 'execute'": {
"main": [
[
{
"node": "G Suite Admin",
"type": "main",
"index": 0
}
]
]
}
}
}Actions
Technical Specs
Compatibility
License
This workflow template follows MIT license, you can freely use, modify and distribute.
Please comply with relevant third-party service terms when using.