0% found this document useful (0 votes)
9 views41 pages

SPS 7.1 ServiceNow-Tutorial

Uploaded by

suhani.rastogi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views41 pages

SPS 7.1 ServiceNow-Tutorial

Uploaded by

suhani.rastogi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

One Identity Safeguard for Privileged

Sessions 7.1

ServiceNow - Tutorial
Copyright 2022 One Identity LLC.
ALL RIGHTS RESERVED.
This guide contains proprietary information protected by copyright. The software described in this
guide is furnished under a software license or nondisclosure agreement. This software may be used
or copied only in accordance with the terms of the applicable agreement. No part of this guide may
be reproduced or transmitted in any form or by any means, electronic or mechanical, including
photocopying and recording for any purpose other than the purchaser’s personal use without the
written permission of One Identity LLC .
The information in this document is provided in connection with One Identity products. No license,
express or implied, by estoppel or otherwise, to any intellectual property right is granted by this
document or in connection with the sale of One Identity LLC products. EXCEPT AS SET FORTH IN THE
TERMS AND CONDITIONS AS SPECIFIED IN THE LICENSE AGREEMENT FOR THIS PRODUCT,
ONE IDENTITY ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR
STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-
INFRINGEMENT. IN NO EVENT SHALL ONE IDENTITY BE LIABLE FOR ANY DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT
LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION OR LOSS OF
INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF
ONE IDENTITY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. One Identity makes
no representations or warranties with respect to the accuracy or completeness of the contents of this
document and reserves the right to make changes to specifications and product descriptions at any
time without notice. One Identity does not make any commitment to update the information
contained in this document.
If you have any questions regarding your potential use of this material, contact:
One Identity LLC.
Attn: LEGAL Dept
4 Polaris Way
Aliso Viejo, CA 92656
Refer to our Web site ([Link] for regional and international office
information.
Patents
One Identity is proud of our advanced technology. Patents and pending patents may apply to this
product. For the most current information about applicable patents for this product, please visit our
website at [Link]
Trademarks
One Identity and the One Identity logo are trademarks and registered trademarks of One Identity
LLC. in the U.S.A. and other countries. For a complete list of One Identity trademarks, please visit
our website at [Link]/legal/[Link]. All other trademarks are
the property of their respective owners.
Legend

WARNING: A WARNING icon highlights a potential risk of bodily injury or property


damage, for which industry-standard safety precautions are advised. This icon is
often associated with electrical hazards related to hardware.

CAUTION: A CAUTION icon indicates potential damage to hardware or loss of data


if instructions are not followed.

SPSServiceNow - Tutorial
Updated - 11 November 2022, 18:03
For the most recent documents and product information, see Online product documentation.
Contents

Introduction 5

Technical requirements 7

Detailed overview of SPS interworking with ServiceNow 8

Notable features 10

Configure SPS to use the ServiceNow plugin 11

SPS ServiceNow plugin parameter reference 13


[service_now] 17
[service_now_ticket_patterns] 19
[auth] 22
[connection_limit by=client_ip_gateway_user] 23
[authentication_cache] 23
[WHITELIST] 25
[whitelist source=user_list] 26
[whitelist source=ldap_server_group] 27
[USERMAPPING] 28
[usermapping source=explicit] 29
[usermapping source=ldap_server] 29
[username_transform] 30
[ldap_server] 31
[credential_store] 31
[logging] 32
[https_proxy] 33
[question_1] 33

Store sensitive plugin data securely 35

Perform multi-factor authentication with the SPS plugin in terminal connec-


tions 36

Perform multi-factor authentication with the SPS plugin in Remote Desktop


(RDP) connections 37

SPS 7.1 ServiceNow - Tutorial


3
Perform multi-factor authentication with the SPS plugin in Microsoft SQL
Server (MSSQL) connections 38

About us 39

Contacting us 40

Technical support resources 41

SPS 7.1 ServiceNow - Tutorial


4
Introduction

This document describes how you can use the services of ServiceNow to authenticate and
authorize the sessions of your privileged users with One Identity Safeguard for Privileged
Sessions (SPS).

One Identity Safeguard for Privileged Sessions:

One Identity Safeguard for Privileged Sessions (SPS) controls privileged access to remote
IT systems, records activities in searchable, movie-like audit trails, and prevents malicious
actions. SPS is a quickly deployable enterprise device, completely independent from clients
and servers — integrating seamlessly into existing networks. It captures the activity data
necessary for user profiling and enables full user session drill down for forensic
investigations.
SPS acts as a central authentication gateway, enforcing strong authentication before users
access sensitive IT assets. SPS can integrate with remote user directories to resolve the
group memberships of users who access nonpublic information. Credentials for accessing
information systems can be retrieved transparently from SPS's local Credential Store or a
third-party password management system. This method protects the confidentiality of
passwords as users can never access them. When used together with ServiceNow (or
another Multi-Factor Authentication (MFA) provider), SPS directs all connections to the
authentication tool, and upon successful authentication, it permits the user to access the
information system.

Integrating ServiceNow with SPS:

SPS integrates with ServiceNow by enabling ticket ID request and validation during
authentication and authorization on target servers.
The integration adds an additional security layer to the gateway authentication performed
on SPS by verifying that the user has a valid reason to access the server. SPS prompts the
user for a valid ServiceNow ticket ID, and upon successful authorization, it permits the user
to access the information system.

Meet compliance requirements

ISO 27001, ISO 27018, SOC 2, and other regulations and industry standards include
authentication-related requirements, (for example, Multi-Factor Authentication (MFA) for
accessing production systems, and the logging of all administrative sessions). In addition
to other requirements, using SPS and ServiceNow helps you comply with the following
requirements:

l PCI DSS 8.3: Secure all individual non-console administrative access and all remote
access to the cardholder data environment (CDE) using MFA.

SPS 7.1 ServiceNow - Tutorial


5
Introduction
l PART 500.12 Multi-Factor Authentication: Covered entities are required to apply
MFA for:
l Each individual accessing the covered entity’s internal systems.
l Authorized access to database servers that allow access to nonpublic
information.
l Third parties accessing nonpublic information.
l NIST 800-53 IA-2, Identification and Authentication, network access to privileged
accounts: The information system implements MFA for network access to
privileged accounts.

SPS 7.1 ServiceNow - Tutorial


6
Introduction
Technical requirements

In order to successfully connect SPS with RADIUS server, you need the following
components.

In ServiceNow:

l An active ServiceNow instance.


l A technical user who has access to the ServiceNow REST API.

In SPS:

l A copy of the SPS ServiceNow plugin. This plugin is an Authentication and


Authorization (AA) plugin customized to work with ServiceNow.
l SPS must be able to access the Internet (at least the API services). Since ServiceNow
is a cloud-based service provider, SPS must be able to access its web services to
authorize the user.
The connection also requires the ServiceNow ticket ID.

l SPS supports AA plugins in the MSSQL, RDP, SSH, and Telnet protocols.
l In RDP, using an AA plugin together with Network Level Authentication in a
Connection Policy has the same limitations as using Network Level Authentication
without domain membership.
l In RDP, using an AA plugin requires TLS-encrypted RDP connections. For details,
see "Enabling TLS-encryption for RDP connections" in the Administration Guide.

Availability and support of the plugin

The SPS ServiceNow plugin is available for download as-is, free of charge to every SPS
customer from the ServiceNow plugin for SPS page. In case you need any customizations
or additional features, contact our Support Team.

CAUTION:
Using custom plugins in SPS is recommended only if you are familiar with
both Python and SPS. Product support applies only to SPS: that is, until the
entry point of the Python code and passing the specified arguments to the
Python code. One Identity is not responsible for the quality, resource
requirements, or any bugs in the Python code, nor any crashes, service
outages, or any other damage caused by the improper use of this feature,
unless explicitly stated in a contract with One Identity. If you want to
create a custom plugin, contact our Support Team for details and
instructions.

SPS 7.1 ServiceNow - Tutorial


7
Technical requirements
Detailed overview of SPS
interworking with ServiceNow

The following figure illustrates how SPS and ServiceNow interwork with each other.

Figure 1: SPS interworking with ServiceNow

If SPS is integrated with ServiceNow, the interaction of the two products consists of the
following steps:

1. Connect to a protected server.


2. SPS performs gateway authentication.
SPS receives the connection request and authenticates you. SPS can authenticate
you to a number of external user directories (for example: LDAP, Microsoft Active
Directory, or RADIUS). This is the first factor of authentication.
3. SPS checks if you are exempt from multi-factor authentication and authorization.

SPS 7.1 ServiceNow - Tutorial


8
Detailed overview of SPS interworking with ServiceNow
You can configure SPS using whitelists and blacklists to selectively require multi-
factor authentication and authorization (for example, to create break-glass access for
specific users).
l If multi-factor authentication and authorization is not required, you can
access the protected server, while SPS records your activities. The
procedure ends here.
l If multi-factor authentication and authorization is required, SPS continues the
procedure with the next step.
For details on creating exemption lists, see [WHITELIST] on page 25.
4. Configure the ServiceNow plugin to map the gateway usernames to the ServiceNow
external identity.
If the gateway usernames are different from the external ServiceNow identities. You
must configure the SPS ServiceNow plugin to map the gateway usernames to the
external ServiceNow identities.
To map the gateway username to the external identity, query an LDAP or
Microsoft Active Directory server, or if applicable, append a domain name to the
gateway username.
For details, see [USERMAPPING] on page 28.
5. SPS performs outband authorization on ServiceNow.
If gateway authentication is successful, SPS prompts you for a valid ServiceNow
ticket ID. Then SPS connects to the ServiceNow server and runs a predefined query.
Upon successful authorization, it allows you to access the information system.
6. If multi-factor authentication and authorization is successful, you can connect to the
protected server, while SPS records your activities.
Optionally, SPS can retrieve credentials from a local or external Credential Store or
password vault, and perform authentication on the server with credentials that are
not known to you.
7. If you open a new session within a short period, you can do so without having to
perform multi-factor authentication again. After this configurable grace period
expires, you must perform multi-factor authentication to open the next session.
For details, see [authentication_cache] on page 23.

SPS 7.1 ServiceNow - Tutorial


9
Detailed overview of SPS interworking with ServiceNow
3

Notable features

This section contains the notable features of this plugin.

l To map the gateway usernames to the external ServiceNow identities if the gateway
usernames are different from the ServiceNow usernames, configure the
[USERMAPPING] on page 28 section of the plugin.
l The [WHITELIST] on page 25 section allows configuring authentication whitelists and
blacklists for example to create break-glass access for specific users to allow them to
bypass ServiceNow authentication.
l The [authentication_cache] on page 23 section contains the settings that determine
how soon after performing a ServiceNow authentication must the user repeat the
authentication when opening a new session.
l The [connection_limit by=client_ip_gateway_user] on page 23 section contains the
options related to limiting parallel sessions.

SPS 7.1 ServiceNow - Tutorial


10
Notable features
4

Configure SPS to use the


ServiceNow plugin

Prerequisites:

l A technical user who has access to the ServiceNow REST API.


l Make sure that you have all the required components listed in Technical
requirements.

To configure SPS to use ServiceNow multi-factor authentication

1. Download the SPS ServiceNow plugin

SPS customers can download the official plugin from GitHub.

2. Upload the plugin to SPS

Upload the plugin to SPS. For details, see "Using a custom Authentication and
Authorization plugin to authenticate on the target hosts" in the Administration Guide.

3. Configure the plugin on SPS

The plugin includes a default configuration file, which is an ini-style configuration file
with sections and name=value pairs. You can edit it on the Policies > AA Plugin
Configurations page of the SPS web interface.
a. Configure the usermapping settings if needed. SPS must find out which
ServiceNow user belongs to the username of the authenticated connection. For
that, it can query your LDAP/Microsoft Active Directory server. For details, see
[USERMAPPING].
b. Configure other parameters of your plugin as needed for your environment. For
details, see SPS ServiceNow plugin parameter reference.

4. Configure a Connection policy and test it

Configure a Connection policy on SPS. In the AA plugin field of the Connection


policy, select the SPS ServiceNow plugin you configured in the previous step, then

SPS 7.1 ServiceNow - Tutorial


11
Configure SPS to use the ServiceNow plugin
start a session to test it. For details on how a user can perform multi-factor
authentication, see Perform multi-factor authentication with the SPS plugin in
terminal connections and Perform multi-factor authentication with the SPS plugin in
Remote Desktop (RDP) connections.

SPS 7.1 ServiceNow - Tutorial


12
Configure SPS to use the ServiceNow plugin
5

SPS ServiceNow plugin parameter


reference

This section describes the available options of the SPS ServiceNow plugin.
The plugin uses an ini-style configuration file with sections and name=value pairs. This
format consists of sections, led by a [section] header and followed by name=value entries.
Note that the leading whitespace is removed from values. The values can contain format
strings, which refer to other values in the same section. For example, the following section
would resolve the %(dir)s value to the value of the dir entry (/var in this case).

[section name]
dirname=%(dir)s/mydirectory
dir=/var

All reference expansions are done on demand. Lines beginning with # or ; are ignored and
may be used to provide comments.
You can edit the configuration file from the SPS web interface. The following code snippet is
a sample configuration file.

##### ServiceNow specific settings #####


[service_now]
# instance or host of ServiceNow required, instance takes precedence if both
defined
instance=YourServiceNowInstanceName
# basic authentication information. Currently only username and password
supported
user=
password=

# ServiceNow field in the request to update with the SPS session id


;update_field=close_notes

[service_now_ticket_patterns]
# Option names in this section must have a corresponding section
;incident=INC.*
change=CHG.*

SPS 7.1 ServiceNow - Tutorial


13
SPS ServiceNow plugin parameter reference
[change]
table=change_request
;123TEXTQUERY321=changes^active=true^assigned_
to=f298d2d2c611227b0106c6be7f154bc8^state=-2^number=CHG000091
query="active=true^assigned_to=$username^state=-2^number=$ticket_id"

# This section handles the incident type ServiceNow requests


;[incident]
# The table in which the incidents are stored
;table=incident
# The query you would like to run in order to validate the provided ServiceNow
request
# You can build this query if you go to the corresponding table in ServiceNow
and choose the Filter option
# Once you have put together your query you have to Run it
# After you ran your query you will be able to Copy the query from the context
menu
# In order to insert variable data in to the query you can use the following
option which get templated into the query string
# $ticket_id, $username and all of the items of the ConnectionInfo except the
passwords
# You have to use $ as delimiter
;query=

###### Common plugin options ######


# To enable or change a parameter, uncomment its line by removing the ';'
# character and replacing the right side of '=' with the desired value.
# If the parameter has the following structure
# ; name=<value>
# then the related option is turned off until you replace '<value>'.
#
# If the parameter has the following structure
# ; name=value
# then the related option is automatically turned on with the default value
# of 'value'.
#
# To handle sensitive data, you can use a local Credential Store to retrieve
# parameters from.
# Enter the name of the local Credential Store (Policies > Credential Store) as
# the value of the 'name' parameter in section [credential_store]. To retrieve a
# parameter from this Credential Store, type the $ character as the value of
# a parameter in this configuration file. To use the $ character as value,
# type $$ instead. For more information, read the "Store sensitive plugin data
# securely" section in the Tutorial document.

[credential_store]
# Name of the local credential store configured in SPS for hosting sensitive
# configuration data. For more information, read the "Store sensitive

SPS 7.1 ServiceNow - Tutorial


14
SPS ServiceNow plugin parameter reference
# plugin data securely" section in the Tutorial document.
; name=<name-of-credential-store-policy-that-hosts-sensitive-data>

[logging]
# To configure the log level, enter one of the following values:
# 'debug', 'info', 'warning', 'error', 'critical'
; log_level=info
log_level=debug
[https_proxy]
# To set the HTTPS proxy environment for the plugin, configure the following.
; server=<proxy-server-name-or-ip>
; port=3128

[auth]
# To override the prompt when using 2FA/MFA, enter the new prompt below.
; prompt=Press Enter for push notification or type one-time password:

# For better security, you can hide the characters (OTP or password) that the
# user types after the prompt.
# To hide the characters, set 'disable_echo' to 'yes'.
; disable_echo=no

[connection_limit by=client_ip_gateway_user]
# To limit the number of parallel sessions the gateway user can start from a
# given client IP address, configure 'limit'. For an unlimited number of
# sessions, type '0'.
; limit=0

[authentication_cache]
# CAUTION: Do not configure this section unless you know exactly what you are
# doing. For more information, read the "[authentication_cache]" section in the
# Tutorial document.
; hard_timeout=90
; soft_timeout=15
; reuse_limit=0

######[WHITELIST]######
# The [whitelist source=user_list] and [whitelist source=ldap_server_group]
# sections allow configuring authentication whitelists based on a User List
# policy or an LDAP Server policy. These two sections are independent, any of
# the two can be configured and can allow the user to bypass 2FA/MFA
# authentication.

[whitelist source=user_list]
# The [whitelist source=user_list] section allows whitelisting users based on a
# User List policy configured in SPS (Policies > User Lists). To enable this
# whitelist, configure one of the use cases below.
# IMPORTANT: the user names are compared to the User List in a case-sensitive

SPS 7.1 ServiceNow - Tutorial


15
SPS ServiceNow plugin parameter reference
# manner.

# Use case #1: To allow specific users to connect without providing 2FA/MFA
# credentials, the User List policy should have the following settings:
# Set 'Allow' to 'No user' and list the users in the 'Except' list. Then type
# the name of this User List policy as the value of the 'name' parameter here.
; name=<name-of-user-list-policy>

# Use case #2: To enforce 2FA/MFA authentication for selected users, the User
# List policy should have the following settings: Set 'Allow' to 'All users' and
# list the users in the 'Except' list. Then type the name of this User List
# policy as the value of the 'name' parameter here.
; name=<name-of-user-list-policy>

[whitelist source=ldap_server_group]
# The [whitelist source=ldap_server_group] section allows whitelisting users
# based on LDAP Server group membership, To enable this whitelist, configure one
# of the use cases below.
# IMPORTANT: the user names and groups are compared in LDAP in a
# case-insensitive manner.

# Use case #1: To allow members of specific LDAP/AD group(s) to connect without
# providing 2FA/MFA credentials, type the names of these LDAP/AD groups as
# values of the 'except' parameter and set the 'allow' parameter to 'no_user':
; allow=no_user
; except=<group-1>,<group-2>,...

# Use case #2: To enforce 2FA/MFA authentication only on members of specific


# LDAP/AD groups, type the names of these LDAP/AD groups as values of the
# 'except' parameter and set the 'allow' parameter to 'all_users'.
; allow=all_users
; except=<group-1>,<group-2>,...

######[USERMAPPING]######
# Usually the gateway user and the external 2FA/MFA identity are different.
# Because the authentication is based on the 2FA/MFA identity, to be able to
# authenticate with the gateway user, you will have to map these two to each
# other. The following methods are possible: explicit and LDAP server.
#
# The explicit method has priority over the LDAP server method.
# If there is no [USERMAPPING] and no [username_transform], then the 2FA/MFA
# identity will be the same as the gateway user name.

[usermapping source=explicit]
# To map the gateway user name to an external 2FA/MFA identity, configure the
# following name-value pairs.
# NOTE: Type the user names in lowercase.
; <user-name-1>=<id-1>

SPS 7.1 ServiceNow - Tutorial


16
SPS ServiceNow plugin parameter reference
; <user-name-2>=<id-2>
testauto=f298d2d2c611227b0106c6be7f154bc8

[usermapping source=ldap_server]
# To map the gateway user name (that is in LDAP/AD and has a non-empty UTF8
# attribute string) to an external 2FA/MFA identity, configure the
# 'user_attribute' parameter the following way:
# It must be an LDAP/AD user attribute that contains the external identity.
# Example: description, cn, mail. For a complete list consult
# [Link]
# IMPORTANT: you must configure the name of the LDAP/AD server policy in
# the [ldap_server] section.
; user_attribute=description

[username_transform]
# If the 2FA/MFA service requires the use of domain name in the external
# 2FA/MFA identity, configure the 'append_domain' parameter. This will append
# the domain name after the external 2FA/MFA identity with a '@' character.
# For example, if 'append_domain' is set to '[Link]', then '@[Link]'
# will be appended to the external identity.
# If you have configured [USERMAPPING], the [username_transform] process will
# run after the [usermapping] process.
; append_domain=<domain-without-at-sign>

[ldap_server]
# Required if you have configured [whitelist source=ldap_server_group] or
# [usermapping source=ldap_server].
# The name of the LDAP server policy (Policies > LDAP Servers).
; name=<name-of-LDAP-server-policy>

[question_1]
# IMPORTANT: To configure this optional section, contact our Support Team.
# To request additional information from the user (for example, ticket number)
# define one or more [question_] section (for example, [question_1],
# [question_2]). The user input will be stored under the value of 'key' in the
# 'questions' section of the session cookie.
; prompt=<prompt-to-show-to-the-user>
; key=<target-key-for-the-answer>

# For better security, you can hide the characters that the user types after the
# prompt. To hide the characters, set 'disable_echo' to 'yes'.
; disable_echo=yes

[service_now]
This section contains the options related to your ServiceNow account.

SPS 7.1 ServiceNow - Tutorial


17
SPS ServiceNow plugin parameter reference
[service_now]
instance={instance}
user={user}
password={password}
[service_now_ticket_patterns]

instance

Type: string

Required: yes

Default: N/A

Description: ServiceNow instance used in the communication with the ServiceNow server.

user

Type: string

Required: yes

Default: N/A

Description: The user name, which is used to access ServiceNow.

password

Type: string

Required: yes

Default: N/A

CAUTION:
This parameter contains sensitive data. Make sure to store this data in
your local Credential Store. Type the $ value for this parameter in
production.
For details, see Store sensitive plugin data securely.
Only enter a value different than $ for this parameter in the configuration
for testing purposes in a secure, non-production environment.

Description: The password related to the user name, which is used to access ServiceNow.

SPS 7.1 ServiceNow - Tutorial


18
SPS ServiceNow plugin parameter reference
[service_now_ticket_patterns]
SPS uses the options defined in the [service_now_ticket_patterns] section of the plugin to
perform a query on the ServiceNow server. During authentication, SPS prompts the user
for a valid ServiceNow ticket ID, and if the result of the query defined in the [service_now_
ticket_patterns] section and the ticket ID entered by the user match, SPS permits the user
access to the information system.
You can define more than one ServiceNow ticket patterns for different ServiceNow task
types, for example, one for an incident (INC), one for a change request (CHG), and another
one for a problem (PRB), and so on. Every defined ServiceNow ticket pattern must have a
corresponding section, that is, if you define a ServiceNow ticket pattern, for example, for
an incident (INC), you must also define a corresponding the ticket pattern section for the
incident (INC), which also includes the table and query options.

[service_now_ticket_patterns]
[ServiceNow task type]=[task_type_].*
table=
query=

ServiceNow task type

Type: string

Required: yes

Default: N/A

Description: Specifies the ServiceNow task type, for example, incident (INC), change
request (CHG), problem (PRB), or any other custom defined task type in ServiceNow. SPS
uses the task type you define for the ticket pattern to filter in ServiceNow and list all the
relevant task types. For example, for an incident task type, enter incident=INC.* as the
[ServiceNow task type]=[task_type].* section and during authorization, SPS filters all
the tasks beginning with INC in ServiceNow.

table

Type: string

Required: yes

Default: N/A

Description: The table in ServiceNow where your ServiceNow task type is stored in the
database. For example, for an incident task type, specify the table in which incidents are
stored. To do this, in ServiceNow find the table, which includes the required task type as
shown in the example below:

SPS 7.1 ServiceNow - Tutorial


19
SPS ServiceNow plugin parameter reference
1. In ServiceNow, filter for tables, and select Tables.

Figure 2: Filter for tables

2. From the list of Tables, narrow your search to find the required task type, then click
the task type.

Figure 3: Example filtering on the Incident task type

3. Copy the Name field, which in this example is incident, and paste it in the table=
section of your ServiceNow plugin.

Figure 4: Copy Name field

SPS 7.1 ServiceNow - Tutorial


20
SPS ServiceNow plugin parameter reference
query

Type: string

Required: yes

Default: N/A

Description: The query SPS runs in ServiceNow to validate the ServiceNow ticket ID.

1. In ServiceNow, filter for the required task type view. For example, for an incident
task type, enter Incident or INC*.

Figure 5: Filter for task type view

2. Create a filter by adding as many conditions as required.

Figure 6: Add conditions to your filter

3. When your filter is ready, run your filter.


4. Copy the filter you defined. Right-click the last element of your filter, and
select Copy query.

SPS 7.1 ServiceNow - Tutorial


21
SPS ServiceNow plugin parameter reference
Figure 7: Copy your filter

5. Paste the filter you copied in the query= section of your ServiceNow plugin.

[auth]
This section contains the options related to authentication.

Declaration

[auth]
prompt=Press Enter for push notification or type one-time password:
disable_echo=yes

prompt

Type: string

Required: no

Default: Press Enter for push notification or type one-time password:

Description: SPS displays this text to the user in a terminal connection to request an OTP
interactively. The text is displayed only if the user uses an OTP-like factor, and does not
send the OTP in the connection request.

disable_echo

Type: boolean (yes|no)

Required: no

Default: no

SPS 7.1 ServiceNow - Tutorial


22
SPS ServiceNow plugin parameter reference
Description: For better security, you can hide the characters (OTP or password) that the
user types after the prompt. To hide the characters (replace them with asterisks), set
disable_echo to yes.

[connection_limit by=client_ip_
gateway_user]
This section contains the options related to limiting parallel sessions.

Declaration

[connection_limit by=client_ip_gateway_user]
limit=0

limit

Type: integer

Required: no

Default: 0

Description: To limit the number of parallel sessions the gateway user can start from a
given client IP address, configure limit. For an unlimited number of sessions, type 0.

[authentication_cache]
This section contains the settings that determine how soon after performing a 2FA/MFA
authentication the user must repeat the authentication when opening a new session.
After the first authentication of the user, SPS will not request a new authentication from the
user as long as the new authentications happen within soft_timeout seconds from each
other. After the hard_timeout expires (measured from the first login of the user), SPS will
request a new authentication.
In other words, after opening the first session and authenticating on , the user can keep
opening other sessions without having to authenticate again on as long as the time
between opening any two sessions is less than soft_timeout, but must authenticate on if
hard_timeout expires.

SPS 7.1 ServiceNow - Tutorial


23
SPS ServiceNow plugin parameter reference
Declaration

[authentication_cache]
soft_timeout=15
hard_timeout=90
reuse_limit=5

soft_timeout

Type: integer [in seconds]

Required: yes, if you want caching

Default: N/A

Min value: 0

Max value: 2147483647

Description: The time in seconds after which the SPS plugin requires a new authentication
for the next new session of the user, unless the user successfully authenticates another
session within this period.

hard_timeout

Type: integer [in seconds]

Required: yes, if you want caching

Default: N/A

Min value: 0

Max value: 2147483647

Description: The time in seconds after which the SPS plugin requires a new
authentication for the next new session of the user. The time is measured from the last
authentication of the user.

SPS 7.1 ServiceNow - Tutorial


24
SPS ServiceNow plugin parameter reference
reuse_limit

Type: integer [number of]

Required: Optional

Default: 0

Min value: 0

Max value: 2147483647

Description: The number of times that you can reuse the authentication cache before the
SPS plugin requires from you a new authentication for the next session. The default is 0,
which means that the authentication cache is not unlimited, but it is turned off.
In the example, if reuse_limit is set to 5, and you successfully authenticated with multi-
factor authentication, the next 5 authentications are bypassed in the next 90 seconds
(hard_timeout), if there is no gap bigger than 15 seconds (soft_timeout) between the
authentications.
If any of the hard_timeout, soft_timeout, or reuse_limit parameters, which operate
independently from one another, exceed the configured limit, the SPS plugin requires you
to authenticate for the new session.

[WHITELIST]
Having to perform multi-factor authentication to a remote server every time the user opens
a session can be tedious and inconvenient for the users, and can impact their productivity.
SPS offers the following methods to solve this problem:

l In SPS, the Connection policy determines the type of authentication required to


access a server. If you do not need multi-factor authentication for accessing specific
servers, configure your Connection policies accordingly.
l If the user opens a new session within a short period, they can do so without having
to perform multi-factor authentication. After this configurable grace period expires,
the user must perform multi-factor authentication to open the next session. For
details, see [authentication_cache].
l The [whitelist source=user_list] and [whitelist source=ldap_server_group]
sections allow configuring authentication whitelists and blacklists based on a User
List policy or an LDAP Server policy. These two sections are independent, therefore
any of the two can be configured and, for example, can create break-glass access for
specific users to allow them to bypass authentication.

SPS 7.1 ServiceNow - Tutorial


25
SPS ServiceNow plugin parameter reference
[whitelist source=user_list]
The [whitelist source=user_list] section allows whitelisting users based on a User List
policy configured in SPS (Policies > User Lists). To enable this whitelist, configure one of
the use cases below.
NOTE: The user names are compared to the User List in a case-sensitive manner.

Declaration

[whitelist source=user_list]
name=<name-of-user-list-policy>

For details on creating user lists, see "Creating and editing user lists" in the
Administration Guide.

name

Type: string

Required: no

Default: N/A

Description: The name of a User List policy containing gateway users configured on SPS
(Policies > User Lists). You can use this option to selectively require multi-factor
authentication for your users (for example, to create break-glass access for specific users).

Use case #1: Allow no user except certain users

To allow specific users to connect without providing credentials, the User List policy
should have the following settings:

l Set Allow to No user and list the users in the Except list.
l Then type the name of this User List policy as the value of the name
parameter.

Use case #2: Allow all users except certain users

To enforce authentication for selected users, the User List policy should have the
following settings:

SPS 7.1 ServiceNow - Tutorial


26
SPS ServiceNow plugin parameter reference
l Set Allow to All users and list the users in the Except list.
l Then type the name of this User List policy as the value of the name
parameter.

[whitelist source=ldap_server_group]
The [whitelist source=ldap_server_group] section allows whitelisting users based on
LDAP Server group membership. To enable this whitelist, configure one of the use
cases below.
NOTE: The user names and groups are compared in LDAP in a case-insensitive manner.

Declaration

[whitelist source=ldap_server_group]
allow=<no_user-or-all_users>
except=<group-1>,<group-2>

allow

Type: string (all_users | no_users)

Required: no

Default: N/A

Description: This parameter defines whether to allow all users or no user to connect
without providing credentials. Used together with the except parameter, you can define
specific LDAP/AD group(s) that are exempt from this rule.

except

Type: string

Required: no

Default: N/A

Description: This parameter defines those specific LDAP/AD group(s) that are exempt from
the rule defined by the allow parameter.

SPS 7.1 ServiceNow - Tutorial


27
SPS ServiceNow plugin parameter reference
Use case #1: Allow no user except members of specific group(s)

To allow members of specific LDAP/AD group(s) to connect without providing


credentials, type the names of these LDAP/AD groups as values of the except
parameter and set the allow parameter to no_user:

[whitelist source=ldap_server_group]
allow=<no_user>
except=<group-1>,<group-2>

You must configure the name of the LDAP Server policy in the [ldap_server] section.

Use case #2: Allow all users except members of specific group(s)

To enforce authentication only on members of specific LDAP/AD group(s), type the


names of these LDAP/AD groups as values of the except parameter and set the allow
parameter to all_users:

[whitelist source=ldap_server_group]
allow=<all_users>
except=<group-1>,<group-2>

You must configure the name of the LDAP Server policy in the [ldap_server] section.

[USERMAPPING]
By default, SPS assumes that the external identity of the user is the same as the gateway
username (that is, the username the user used to authenticate on SPS during the gateway
authentication). If there was no gateway authentication, then the server username is used
for authentication.
If the gateway usernames are different from the external ServiceNow identities. You must
configure the SPS ServiceNow plugin to map the gateway usernames to the external
ServiceNow identities.
You can use the following methods:

l Explicit mapping: [usermapping source=explicit]


l LDAP server mapping: [usermapping source=ldap]
To look up the external identity of the user from an LDAP/Active Directory database,
configure the [usermapping source=ldap_server] section of the SPS plugin.

The Explicit method has priority over the LDAP server method.

SPS 7.1 ServiceNow - Tutorial


28
SPS ServiceNow plugin parameter reference
If you have configured neither the append_domain parameter nor any of the
[USERMAPPING] sections, SPS assumes that the external identity of the user is the same
as the gateway username.

[usermapping source=explicit]
To map the gateway user name to an external identity, configure the following name-
value pairs.

Declaration

[usermapping source=explicit]
<example-user-1>=<ID-1>
<example-user-2>=<ID-2>

<exampleuser>

Type: string

Required: no

Default: N/A

Description: To map the gateway user name to an external identity, configure the name-
value pairs in the following way:

l Type the gateway user name instead of <example-user-1>.


l Type the external ID instead of <ID-1>.

NOTE: Use this option only if there are not only a few users, or for testing purposes. If
there are too many users, it can cause performance issues.

[usermapping source=ldap_server]
To look up the external identity of the user from an LDAP/Active Directory database,
configure the [usermapping source=ldap_server] section of the SPS plugin.

Declaration

[usermapping source=ldap_server]
user_attribute=description

You must configure the name of the LDAP Server policy in the [ldap_server] section.

SPS 7.1 ServiceNow - Tutorial


29
SPS ServiceNow plugin parameter reference
If you configure both the append_domain parameter in the [username_transform] section
and the [usermapping source=ldap_server] section of the SPS plugin, SPS appends the @
character and the value of the append_domain parameter to the value retrieved from the
LDAP database.

user_attribute

Type: string

Required: no

Default: N/A

Description: The user_attribute must be an LDAP/AD user attribute (with a non-


empty UTF8 attribute string) that contains the external identity. For example,
description, cn, mail. For a complete list see the User class section of the Active
Directory Schema document.

[username_transform]
This section contains username transformation-related settings.

Declaration

[username_transform]
append_domain=<domain-without-@-character>

If you have configured [USERMAPPING], the [username_transform] process will run after the
[USERMAPPING] process.

append_domain

Type: string (nonrequired, no default)

Required: no

Default: N/A

Description:
If the service requires the use of domain name in the external identity, configure the
append_domain parameter in the [username_transform] section. In this case, SPS
automatically appends the @ character and the value of this option to the username from
the session, and uses the resulting username on the server to authenticate the user. For

SPS 7.1 ServiceNow - Tutorial


30
SPS ServiceNow plugin parameter reference
example, if the domain is set to append_domain: [Link] and the username is
[Link], the SPS plugin will look for the user [Link]@[Link] on the server.
If you configure both the append_domain parameter in the [username_transform] section
and the [usermapping source=ldap_server] section of the SPS plugin, SPS appends the @
character and the value of the append_domain parameter to the value retrieved from the
LDAP database.

[ldap_server]
The LDAP Server policy that you want to use in an LDAP server usermapping source or an
LDAP server group whitelist source. Required if you have configured [usermapping
source=ldap_server] on page 29 [whitelist source=ldap_server_group] on page 27.

Declaration

[ldap_server]
name=<name-of-LDAP-server-policy>

name

Type: string

Required: conditional

Default: N/A

Description: The name of a configured LDAP Server policy in SPS. For details on configuring
LDAP policies, see "Authenticating users to an LDAP server" in the Administration Guide.

[credential_store]
This section contains settings related to storing sensitive information of the plugin.

Declaration

[credential_store]
name=<name-of-credential-store-policy-that-hosts-sensitive-data>

SPS 7.1 ServiceNow - Tutorial


31
SPS ServiceNow plugin parameter reference
name

Type: string

Required: no

Default: N/A

Description: The name of a local Credential Store policy configured on SPS. You can use
this Credential Store to store sensitive information of the plugin in a secure way (for
example, the value in the section).
For details, see Store sensitive plugin data securely.

[logging]
This section contains logging-related settings.

Declaration

[logging]
log_level=info

log_level

Type: integer or string

Required: no

Default: info

Description: The logging verbosity of the plugin. The plugin sends the generated log
messages to the SPS syslog system. You can check the log messages in the Basic settings
> Troubleshooting > View log files section of the SPS web interface. To show only the
messages generated by the plugins, filter on the plugin: string.
The possible values are:
l debug
l info
l warning
l error
l critical

For details, see Python logging API's log levels: Logging Levels.

SPS 7.1 ServiceNow - Tutorial


32
SPS ServiceNow plugin parameter reference
[https_proxy]
This section contains HTTPS proxy-related settings.

Declaration

[https_proxy]
server=<proxy-server-name-or-ip>
port=3128

server

Type: string

Required: no

Default: N/A

Description: The name or IP address of the HTTPS proxy server.

name

Type: integer

Required: no

Default: 3128

Description: The port number of the HTTPS proxy server.

[question_1]
NOTE: To configure this optional section, contact our Support Team.
To request additional information from the user (for example, ticket number), define one
or more [question_] section (for example, [question_1], [question_2]). The user input
will be stored under the value of key in the questions section of the session cookie.
Description: Used for communication between plugins. This is an interactive
request/response right after authentication in order to supply data to Credential
Store plugins. The question is transferred to the session cookie and all hooks of all
plugins receive it.
For example, if you have an external authenticator app, you do not have to wait for the
question to be prompted but can authenticate with a one-time password:

SPS 7.1 ServiceNow - Tutorial


33
SPS ServiceNow plugin parameter reference
ssh otp=123456@root@scb

Name subsequent questions with the appropriate number (for example, [question_1],
[question_2], and so on).
For details, see "Performing authentication with AA plugin in terminal connections" in the
Administration Guide and "Performing authentication with AA plugin in Remote Desktop
connections" in the Administration Guide.

prompt

Type: string

Required: yes

Default: N/A

Description: The question itself in text format.

key

Type: string

Required: yes

Default: N/A

Description: The name of the name-value pair.

disable_echo

Type: boolean (yes|no)

Required: no

Default: no

Description: Whether the answer to the question is visible (yes), or replaced with
asterisks (no).

SPS 7.1 ServiceNow - Tutorial


34
SPS ServiceNow plugin parameter reference
Store sensitive plugin data securely

By default, the configuration of the plugin is stored on SPS in the configuration of SPS.
Make sure that you store the sensitive parameters (for example, ) of the plugin in an
encrypted way.

To store sensitive plugin data securely

1. Log in to SPS, navigate to Policies > Credential Stores and create a Local
Credential Store. For details, see "Configuring local Credential Stores" in the
Administration Guide.
Instead of usernames and passwords, you will store the configuration parameters of
the plugin in this Credential Store.
2. Add the plugin parameters you want to store in an encrypted way to the Credential
Store. You can store any configuration parameter of the plugin in the Credential
Store, but note that if an option appears in the Credential Store, the plugin will use it.
If the same parameter appears in the configuration of the plugin, it will be ignored.
l Enter the name of the configuration section without the brackets in the Host
field (for example, ).
l Enter the name of the plugin parameter in the Username field (for example, ).
l Enter the value of the plugin parameter in the Passwords field.

l Click .
3. Navigate to the configuration of the plugin on the Policies > AA Plugin
Configurations page.
4. In the plugin configuration file, enter the name of the local Credential Store under the
[credential_store] section as the value of the name parameter.
5. Enter $ as the value of the parameter storing sensitive data.

SPS 7.1 ServiceNow - Tutorial


35
Store sensitive plugin data securely
Perform multi-factor authentication
with the SPS plugin in terminal
connections
The following describes how to establish a terminal connection (SSH, TELNET, or TN3270)
to a server.

To establish a terminal connection (SSH, TELNET, or TN3270) to a server

1. Connect to the server.


If you can authenticate using an OTP or token, encode the OTP as part of the
username. You can use the @ as a field separator.

Example:

ssh otp=YOUR-ONE-TIME-PASSWORD@user@server

Replace YOUR-ONE-TIME-PASSWORD with your actual OTP.

2. If SPS prompts you for further information, enter the requested information. If you
need to authenticate with an OTP, but you have not supplied the OTP in your
username, you will be prompted to enter the OTP.
3. Authenticate on the server.
4. If authentication is successful, you can access the server.

SPS 7.1 ServiceNow - Tutorial

Perform multi-factor authentication with the SPS plugin in terminal 36


connections
Perform multi-factor authentication
with the SPS plugin in Remote
Desktop (RDP) connections
The following section describes how to establish a Remote Desktop (RDP) connection to a
server when the AA plugin is configured.

To establish a RDP connection to a server when the AA plugin is configured

1. Open your Remote Desktop client application.


2. If you have to provide additional information to authenticate on the server, you must
enter this information in your Remote Desktop client application in the User name
field, before the regular content (for example, your username) of the field.
If you can authenticate using an OTP or token, encode the OTP as part of the
username. To encode additional data, you can use the following special characters:
l % as a field separator
l ~ as the equal sign
l ^ as a colon (for example, to specify the port number or an IPv6 IP address)

Example:

For example, use the following format:


domain\otp~YOUR-ONE-TIME-PASSWORD%Administrator
Replace YOUR-ONE-TIME-PASSWORD with your actual OTP.

3. Connect to the server.


If you need to authenticate using a push notification, approve the connection in your
mobile app.
4. Authenticate on the server.
5. If authentication is successful, you can access the server.

SPS 7.1 ServiceNow - Tutorial

Perform multi-factor authentication with the SPS plugin in Remote 37


Desktop (RDP) connections
Perform multi-factor authentication
with the SPS plugin in Microsoft SQL
Server (MSSQL) connections
The following section describes how to establish a Microsoft SQL Server (MSSQL)
connection to a server when the AA plugin is configured.

To establish a MSSQL connection to a server when the AA plugin is configured

1. Open your SQL client application.


2. If you have to provide additional information to authenticate on the server, you must
enter this information in your SQL client application in the User name field, before the
regular content (for example, your username) of the field.
If you can authenticate using an OTP or token, encode the OTP as part of the
username. To encode additional data, you can use the following special characters:
l % as a field separator
l ~ as the equal sign
l ^ as a colon (for example, to specify the port number or an IPv6 IP address)

Example:

For example, use the following format:


domain\otp~YOUR-ONE-TIME-PASSWORD%Administrator
Replace YOUR-ONE-TIME-PASSWORD with your actual OTP.

3. Connect to the server.


If you need to authenticate using a push notification, approve the connection in your
mobile app.
4. Authenticate on the server.
5. If authentication is successful, you can access the server.

SPS 7.1 ServiceNow - Tutorial

Perform multi-factor authentication with the SPS plugin in Microsoft 38


SQL Server (MSSQL) connections
About us

About us

One Identity solutions eliminate the complexities and time-consuming processes often
required to govern identities, manage privileged accounts and control access. Our solutions
enhance business agility while addressing your IAM challenges with on-premises, cloud and
hybrid environments.

SPS 7.1 ServiceNow - Tutorial


39
About us
Contacting us

For sales and other inquiries, such as licensing, support, and renewals, visit
[Link]

SPS 7.1 ServiceNow - Tutorial


40
Contacting us
Technical support resources

Technical support is available to One Identity customers with a valid maintenance contract
and customers who have trial versions. You can access the Support Portal at
[Link]
The Support Portal provides self-help tools you can use to solve problems quickly and
independently, 24 hours a day, 365 days a year. The Support Portal enables you to:

l Submit and manage a Service Request


l View Knowledge Base articles
l Sign up for product notifications
l Download software and technical documentation
l View how-to videos at [Link]/OneIdentity
l Engage in community discussions
l Chat with support engineers online
l View services to assist you with your product

SPS 7.1 ServiceNow - Tutorial


41
Technical support resources

You might also like