create_gws_user
Create a new Google Workspace user by providing name, email, org unit, and password, with option to force password change on first login.
Instructions
Creates a new Google Workspace user.
Args:
first_name: The first name of the user.
last_name: The last name of the user.
primary_email: The primary email address for the new user.
org_unit_path: The organizational unit path (e.g., '/Staff/Engineering').
password: The initial password for the user.
change_password_at_next_login: Whether to force password change on first login.
confirmed: Must be True to execute. If False, returns a preview.
GAM pattern:
gam create user <primary_email> firstname <first_name> lastname <last_name>
org <org_unit_path> password <password> changepassword <true/false>
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"first_name": "<first_name>",
"last_name": "<last_name>",
"primary_email": "<primary_email>",
"org_unit_path": "<org_unit_path>",
"password": "<password>"
},
"name": "create_gws_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | ||
| confirmed | No | ||
| last_name | Yes | ||
| first_name | Yes | ||
| org_unit_path | Yes | ||
| primary_email | Yes | ||
| change_password_at_next_login | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |