update_user
Modify user details in ServiceNow, including name, email, department, roles, and account status, using the user ID to identify the record.
Instructions
Update an existing user in ServiceNow
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | Whether the user account is active | |
| department | No | Department the user belongs to | |
| No | Email address of the user | ||
| first_name | No | First name of the user | |
| last_name | No | Last name of the user | |
| location | No | Location of the user | |
| manager | No | Manager of the user (sys_id or username) | |
| mobile_phone | No | Mobile phone number of the user | |
| password | No | Password for the user account | |
| phone | No | Phone number of the user | |
| roles | No | Roles to assign to the user | |
| title | No | Job title of the user | |
| user_id | Yes | User ID or sys_id to update | |
| user_name | No | Username for the user |
Input Schema (JSON Schema)
{
"properties": {
"active": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Whether the user account is active",
"title": "Active"
},
"department": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Department the user belongs to",
"title": "Department"
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Email address of the user",
"title": "Email"
},
"first_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "First name of the user",
"title": "First Name"
},
"last_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Last name of the user",
"title": "Last Name"
},
"location": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Location of the user",
"title": "Location"
},
"manager": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Manager of the user (sys_id or username)",
"title": "Manager"
},
"mobile_phone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Mobile phone number of the user",
"title": "Mobile Phone"
},
"password": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Password for the user account",
"title": "Password"
},
"phone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Phone number of the user",
"title": "Phone"
},
"roles": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Roles to assign to the user",
"title": "Roles"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Job title of the user",
"title": "Title"
},
"user_id": {
"description": "User ID or sys_id to update",
"title": "User Id",
"type": "string"
},
"user_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Username for the user",
"title": "User Name"
}
},
"required": [
"user_id"
],
"type": "object"
}