create_user
Create a new user in ServiceNow by defining username, name, email, roles, and other details. Streamlines user account setup within the ServiceNow platform.
Instructions
Create a new user in ServiceNow
Input Schema
Name | Required | Description | Default |
---|---|---|---|
active | No | Whether the user account is active | |
department | No | Department the user belongs to | |
Yes | Email address of the user | ||
first_name | Yes | First name of the user | |
last_name | Yes | 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_name | Yes | Username for the user |
Input Schema (JSON Schema)
{
"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"
}