create_user
Creates a new user in ServiceNow with details like username, email, department, and roles. Automates user setup, ensuring required fields are included for account activation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"CreateUserParams": {
"description": "Parameters for creating a user.",
"properties": {
"active": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": true,
"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": {
"description": "Email address of the user",
"title": "Email",
"type": "string"
},
"first_name": {
"description": "First name of the user",
"title": "First Name",
"type": "string"
},
"last_name": {
"description": "Last name of the user",
"title": "Last Name",
"type": "string"
},
"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_name": {
"description": "Username for the user",
"title": "User Name",
"type": "string"
}
},
"required": [
"user_name",
"first_name",
"last_name",
"email"
],
"title": "CreateUserParams",
"type": "object"
}
},
"properties": {
"params": {
"$ref": "#/$defs/CreateUserParams"
}
},
"required": [
"params"
],
"title": "create_userArguments",
"type": "object"
}