Skip to main content

Data provisioning

In the Provisioning section of the system configuration, in the Enable provisioning dialog, select the ServiceNow ITSM Relay Connector as the provisioning connector.

General settings

ParameterDescription
Enable password resetEnable the system for self-service password reset
Password policyIndicate a password policy for the ServiceNow
Provisioning claims validityEnter the number of days a provisioning claim is valid. If this field is set to 0 or empty, the provisioning claim is not valid and the provisioning call is sent once more.
Failed provisioning claims validityEnter the number of days a failed provisioning claim is valid
Account deletion unsupportedCheck this option if account deletion should not be supported

Provisioning configuration

ParameterDescription
Base addressSpecify the server address.
API rootSpecify the relative address for the ServiceNow Table API. The default value is: api/now/table
Authentication typeThe type of authentication to use for the REST system. Depending on the type of authentication that you choose to use, you may see more or fewer settings. The available options are: Basic (username and password are required), None (there are no authentication headers)., OAuth2 (all OAuth mandatory fields must be completed with proper values). These values can be configured during ServiceNow OAuth Setup.
Security protocolSecurity protocol of your REST system.
Timeout in secondsSpecify the timeout value in seconds.

Basic authentication

ParameterDescription
UsernameThe username for the user to authenticate with the service.
PasswordThe password for the user to authenticate with the service.

OAuth2 authentication

ParameterDescription
URL for Authorization tokenThe URL address for the Authorization token. Configured during ServiceNow OAuth Setup.
OAuth Grant TypeThe type of OAuth2 Grant used for authorization. Password credentials is the recommended authorization type. Possible grants: Password credentials, JWT bearer
OAuth Client IDThe Client ID, configured during ServiceNow OAuth Setup.
OAuth Client SecretOAuth Client Secret, configured during ServiceNow OAuth Setup.
OAuth ResourceOAuth Resource Owner. Not required, can be left blank.
OAuth Token Revoke URLURL address for the Token Revoke. Not required, can be left blank.
Token cache policyThe token cache policy, with the following options available: Never cache – we should not cache the token, Always cache – get the token once and store always, Expiration interval – expire the token after some time interval (in seconds).

Password credentials Grant

ParameterDescription
UsernameThe username for the ServiceNow user to authenticate with.
PasswordThe password for the ServiceNow user.

ServiceNow settings

These settings allow you to configure the requests sent to the ServiceNow.

ParameterDescription
Create request object per jobSpecify if the request object is created for a job. If this is unchecked, only request items are created.
Request object typeSpecify the used request updates. The default object is ‘sc_request’.
Request fields*Choose the fields that are added on the request. The default fields are ‘priority’, ‘description’, and ‘special_instructions’.
Properties to copy to requestSpecify the properties that will be copied to the request and request item objects. The default property is ‘requested_for’.
Properties to move to requestSpecify the properties that will be moved to the request object only.
Request status fieldSpecify the field in the request that will be used to determine the request’s state. The default property is ‘requested_state’.
Request message fieldAllows you to retrieve a message added to the request.
Request pending valuesSpecify the values of the request that set it as pending. The default values are ‘requested’ and ‘in_process’.
Request failed valuesSpecify the values of the request that set it as failed. The default values are ‘closed_cancelled’, ‘closed_rejected’, and ‘closed_skipped’.
Request partially completed valuesSpecify the values of the request that set it as partially completed. The default values are ‘closed_incomplete’.
Request completed valuesSpecify the values of the request that set it as completed. The default values are ‘closed_complete’.
Request item status fieldSpecify the field in the request item that will be used to determine the request’s state. The default property is ‘state’.
Request item message fieldAllows you to retrieve a message added to the request item.
Request item pending valuesSpecify the values of the request item that set it as pending. The default values are ‘-5’, ‘1’, and ‘2’.
Request item failed valuesSpecify the values of the request item that set it as failed. The default values are ‘4’ and ‘7’.
Request item completed valuesSpecify the values of the request item that set it as completed. The default values are ‘3’.
Correlation display valueThis value is used by the connector to identify the failed requests or tasks in order not to create multiple requests or request items for the same job.
Trigger workflow on createSet this to true to trigger a ServiceNow workflow. The Connector will update the request item that will trigger a workflow.
Properties to move from taskSpecify the properties which will be moved from the task and used in the PATCH operation (should be separated by a comma).
Properties to copy from taskSpecify the properties which will be copied from the task and used in the PATCH operation (should be separated by a comma).
Field to updateThis field is available if the Trigger workflow on create checkbox is set to true. Specify the field on the request item object that the connector updates. This field is mandatory.
ValueThis field is available if the Trigger workflow on create checkbox is set to true. Specify the value set by the connector. If the field is left blank, the value will be set to current date (as text).
note

In the case of Request fields, you can remove any of the described ones but not add new ones. To map additional fields to the request object you must add them to the Properties to copy or Properties to move. The fields are taken from the first task in the job.

The status values described above are only the default values. You can define your custom status values to suit your ServiceNow configuration.

Advanced settings

The Advanced settings dialog for the ServiceNow Relay Connector features a special Relaying tab in.

ParameterDescription
Poll frequency (hours)Specify how often the OPS polls (asks) for the job status.
Poll timeout (days)Specify the number of days after which the OPS will stop the above polling and set the job to failed.

Data model

The ServiceNow Relay Connector creates Request objects linked to OPS jobs and the request fields are mapped to the job fields in the following way.

Request fieldJob fieldDescription
descriptionOriginJobIdThis is a name value pair list
special_instructionsJob.Tasks[].DescriptionContains the description of each of the tasks in the request
priorityJob.PriorityIf the job priority is higher than 5 then the value of this field is automatically set to 5
note

The contents of the above fields cannot be controlled. However, using the connector configuration, you can control if a given field from the list is at all set or not.

In addition, below you can see the examples of the POST calls for the Request object and Request item object.

Task Mappings

System configuration Task Mappings

For the ServiceNow Relayed provisioning to work correctly, you need to manually select the following task mappings in the Task mappings dialog of the Provisioning section for your system.

ParameterDescription
RoPE Assignment to ServiceNow Request ItemContains RoPE mappings between an account and a resource in the ServiceNow
RoPE Account to ServiceNow Request ItemContains RoPE mappings for an account name in the ServiceNow

API Task Mappings

The ServiceNow Relay Connector uses the following four default task mappings for the ServiceNow Table API calls:

POST request

Creates a request:

Omada Identity AttributeServiceNow AttributeRequiredDescription
Requested by or identityrefOpened_byyesNot set. Filled with the sys_id of the ServiceNow user who has connected to the Table API.
Beneficiary (identityref)Requested_foryesSys_id for the user in ServiceNow. By default, resolved by matching account name on the CRA with the username.
Job IDCorrelation_idyesUnique identifier for the job in Omada Identity. Cannot be changed.
Correlation_displayValue Omada Value to display which external system has provided the Id.

GET request

Queries for the status of the request:

Omada Identity AttributeServiceNow AttributeRequiredDescription
AssignmentAnchorsys_idYesSys_id for request in ServiceNow
StateStateYesInteger representing state. The value can be set in the ServiceNow settings section.
MessagecommentsNoComments for the request. Comments can be set in the ServiceNow settings section.

POST request item

Creates a request item:

Omada Identity AttributeServiceNow AttributeRequiredDescription
Requested byOpened_by (Sys_user)YesNot set. Filled with the sys_id of the ServiceNow user who has connected to the Table API.
Beneficiary (identityref)Requested_forYesSys_id for the user in ServiceNow. By default, resolved by matching account name on the CRA with the username.
Task IDCorrelation_idYesUnique identifier for the task in Omada Identity. Cannot be changed.
Short_descriptionDescription of the Request. The description has the following format: In system {0}, {1} account with name {2}", ROPE\_System, Operation, ROPE\_AccountName
Correlation_displayA value to display which external system has provided the Id. The value can be set in the ServiceNow settings section. Default is ”Omada”

GET Request item

Queries for the status of the request item:

Omada Identity AttributeServiceNow AttributeRequiredDescription
AssignmentAnchorsys_idYesSys_id for request item in ServiceNow
StateStateYesInteger representing state. The value can be set in the ServiceNow settings section.
MessagecommentsNoComments for the request. Comments can be set in the ServiceNow settings section.