DocumentationAPI ReferenceRelease Notes
Log In
Documentation

ServiceNowSettings.json File Configuration

The ServiceNowSettings.json file contains some settings you must change and some settings you can optionally configure.

Mandatory configuration

ℹ️

Note

The mandatory configuration of the ServiceNow integration is discussed earlier but shown here for completeness.

You must edit the following lines in the ServiceNowSettings.json file before you associate it with the ServiceNow rule script. You can change the file before or after you import it.

This script must be a valid *.json file when you are finished editing it.

Authentication

ℹ️

Note

Remove the asterisks but leave the quotes in place.

FieldDescription
"URL": "REQUIRED",The URL in the form instance-name.service-now.com. Do not use HTTPS, as the secure connection is managed by Endpoint Privilege Management for Windows client.
"Username": "REQUIRED",The ServiceNow user name the client will use.
"Password": "REQUIRED"The ServiceNow password the client will use.

Example

"Authentication": 
{
    "URL": "instance-name.service-now.com", 
    "Username": "adminuser",
    "Password": "Js£DhijZE85pw"
}

Optional configuration

You can optionally edit the following lines in the ServiceNowSettings.json file. You may want to edit these to change the information shown to the user, modify button names, or configure logging.

ℹ️

Note

In the ServiceNowSettings.json file, & represents a keyboard shortcut.

Authentication

FieldDescription
ForceSSLSecurityProtocolControls the Security Protocol used to communicate with ServiceNow. Valid values can be found at https://docs.microsoft.com/en-us/dotnet/api/system.net.securityprotocoltype?view=net-5.0.
Your instance of ServiceNow may have a strict requirement for a specific Security Protocol, check the instance documentation for details. Example: "ForceSSLSecurityProtocol": "Tls12"

ServiceNowIncident

These fields are present in ServiceNow and populated by Endpoint Privilege Management for Windows client.

FieldDescription
ShortDescriptionThis maps to the ServiceNow Short Description.
FullDescriptionThis maps to the ServiceNow Description.
AssignmentGroupThis maps to the ServiceNow Assignment Group.
CategoryThis maps to the ServiceNow Category.
SubcategoryThis maps to the ServiceNow Subcategory.
CommentThis maps to the ServiceNow Comments.

Example

"ServiceNowIncident": 
{
    "ShortDescription": "Avecto Defendpoint application execution request for $($dpProgramName)",
    "FullDescription": "The customer has requested the following application be allowed to execute on their computer:\n\nProgram Name: $($dpProgramName)\nProgram Publisher: $($dpProgramPublisher)\nProgram Path: $($dpProgramPath)\n\nChallenge Code: $($dpChallengeCode)\n\nBusiness Justification: $($dpBusinessJustification)",
    "AssignmentGroup": "UK-Support",
    "Category": "Endpoint-Agents",
    "Subcategory": "Avecto",\
    "Comment": "Created by Avecto Defendpoint $($scriptFriendlyName) integration script."\
}

Logging

These are the logging options you can configure for the ServiceNow integration.

FieldDescription
LogToConsoleWhether or not to log to the console where present. Options are true or false.
LogToFileWhether or not to log to a file. Options are true or false.
LogFilePathThe absolute file path of the file you want to log to.

Example

"Logging":
{
    "LogToConsole": true,
    "LogToFile":true,
    "LogFilePath": "C:\\Users\\MyUser\\Desktop\\examplescriptlog.log"
}

Misc

ℹ️

Note

Remove the asterisks but leave the quotation marks in place.

"DefaultRule": "REQUIRED"This must be set to either DesignatedUserMustAuthorize, ChallegeResponse, or empty. ChallengeResponse is the default configuration.
This setting determines the button on the bottom left of the Submit Incident Report dialog box. If the field is empty, no button is displayed.

Example

"Misc": 
{
    "_comment": "DefaultRule - Should be DesignatedUserMustAuthorize, ChallengeResponse, or empty.",
    "DefaultRule": "ChallengeResponse"
}

📘

For more information, see ServiceNow workflows with Endpoint Privilege Management.

Dialog boxes

The integration displays various dialog boxes according to the workflow you define.

CommonSettings

The following settings apply to all dialog boxes.

FieldDescription
BannerImageFileThe absolute file path to the banner image you want to use for all dialog boxes. The recommended size for this is 450 x 50px. You must use the following format:
C:\Users\StandardUser\Desktop\my_image.jpg
This file must be accessible on the endpoint. Ensure you use two backward slashes as the file is a JSON format and the character must be escaped.

You can localize the following dialog boxes by creating a new section with the appropriate localization abbreviation. For example, "Language_FR". This section is used if the operating system was originally installed with French as the language.

BusinessJustificationDialog

The dialog box varies based on the workflow you are using.

The dialog box and associated variables are shown here:

FieldDescription
TitleThe title of the business justification dialog box.
Default: Submit Incident Report
LabelHeaderThe first piece of text on the business justification dialog box.
Default: Permission to run this application must be requested by submitting an incident report.
LabelInputBoxDefaultThe text that tells the user what to do in this dialog when the DefaultRule in the ServiceNowSettings.json file is set to empty or DesignatedUserMustAuthorize.
Default: Enter the business justification for this application below.
LabelInputBoxChallengeResponseThe text that tells the user what to do when the DefaultRule in the ServiceNowSettings.json file is set to ChallengeResponse.
Default: Enter the business justification for this application below. If you have already received a response code, you can skip this step and click the "Enter Response Code" button.
CustomButtonTextChallengeResponseThe text on the button that is displayed on the bottom left when the DefaultRule in the ServiceNowSettings.json file is set to ChallengeResponse.
Default: &Enter Response Code
CustomButtonTextDesignatedUserMustAuthorizeThe text on the button that is displayed on the bottom left when the DefaultRule in the ServiceNowSettings.json file is set to DesignatedUserMustAuthorize.
Default: &Login As Other User
LabelProgramNameThe program name description.
Default: Program Name
LabelProgramPublisherThe program description.
Default: Program Publisher
LabelProgramPathThe program path.
Default: Program Path
ButtonCancelThe text on the button that is displayed on the bottom right to cancel the request.
Default: &Cancel
ButtonOKThe text on the button that is displayed on the bottom right to submit an incident to ServiceNow.
Default: &Submit Report

ProgressDialog

This dialog box is displayed when Endpoint Privilege Management for Windows client is communicating with ServiceNow.

FieldDescription
TitleThe title of the reporting incident dialog box.
Default: Reporting Incident
LabelHeaderThe text on the dialog box while the Power Rule is processing.
Default: Please wait...

MessageSuccessDialog

This dialog box is displayed when Endpoint Privilege Management for Windows has raised an incident in ServiceNow.

FieldDescription
TitleThe title of the incident successfully reported dialog box.
Default: Incident Successfully Reported
LabelHeaderThe text on the dialog box that tells the user what has happened and what their incident number is in ServiceNow.
Default: Incident has been successfully submitted to ServiceNow.\n\nYour incident number is INC_NUM.
ButtonLinkVisibleToggles the availability of the button that is displayed on the bottom left of the dialog box.
Default: Whether or not a button allowing the user to view their incident is visible. Options are true or false.
ButtonLinkTextThe text on the button that is displayed on the bottom left of the dialog box if it is displayed.
Default: View Incident
ButtonOKThe text on the button that is displayed on the bottom right to close the dialog box.
Default: &Close

ErrorDialogs: ServiceNowQueryError

This dialog box is displayed if Endpoint Privilege Management for Windows client was unable to raise an incident in ServiceNow.

FieldDescription
TitleThe title of the unable to raise a ticket in ServiceNow dialog box.
Default: ServiceNow Query Error
LabelHeaderThe text that tells the user what happened including any error codes.
Default: There was an error contacting ServiceNow.\n\n Please contact your IT support team quoting error code.
ButtonOKThe text on the button that is displayed on the bottom right of the dialog box.
Default: &OK

ErrorDialogs: ServiceNowReportIncidentError

The dialog box is only displayed if there is an error contacting ServiceNow after all the validation has passed, but before the incident is created.

FieldDescription
TitleThe title of the ServiceNow error dialog box.
Default: Unable to Report Incident
LabelHeaderThe text that tells the user what happened including error codes.
Default: There was an error contacting ServiceNow and we were unable to report this incident.\n\n Please contact your IT support team quoting error code
ButtonOKThe text on the button that is displayed on the bottom right of the dialog box.
Default: &OK

©2003-2025 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.