update_user
Modify user details such as active status, department, email, name, location, manager, phone, roles, and password in ServiceNow using the specified user ID or sys_id.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"UpdateUserParams": {
"description": "Parameters for updating a user.",
"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"
],
"title": "UpdateUserParams",
"type": "object"
}
},
"properties": {
"params": {
"$ref": "#/$defs/UpdateUserParams"
}
},
"required": [
"params"
],
"title": "update_userArguments",
"type": "object"
}