Create an OAuth connection
- Follow the instructions in OAuth, and select ServiceNow in the Provider field. Then, follow the steps below to fill in the fields in the Values section of the OAuth creation process.
- Follow the instructions in the ServiceNow Create an endpoint for clients to access the instance guide to create a new OAuth API endpoint.
- Copy the Client ID and Client Secret displayed for your new OAuth API endpoint.
-
Follow the instructions in the ServiceNow Elevate to a privileged role guide to elevate to the
security_adminrole. -
Follow the steps in the ServiceNow Configure an ACL rule guide to create a new Access Control List rule with the following properties. All other properties can be configured as you choose.
- Type:
record - Operation:
read - Name:
Table [sys_db_object]
Access to thesys_glide_objectis required to fetch some ServiceNow table metadata. To allow to access this metadata, repeat this step usingField [sys_glide_object]in the Name property. - Type:
-
Follow the instructions in the ServiceNow Assign a role to a user guide to assign your required roles to the user whose credentials you want to use to create your OAuth connection in .
Access to
sys_dictionaryis required to fetch schema information from ServiceNow. To enable the chosen user to accesssys_dictionary, assign thepersonalize_dictionaryrole to the user. -
Return to the OAuth creation process in and fill in the fields in the Values section as follows:
- Client ID: The Client ID of your new OAuth app.
- Client secret: The Client Secret of your new OAuth app.
- Instance: The subdomain of your ServiceNow instance URL, e.g.
companyif your URL iscompany.service-now.com. - Username: The username of the ServiceNow user whose credentials you want to use to create this OAuth connection.
- Password: The password of the ServiceNow user whose credentials you want to use to create this OAuth connection.
- Click Authorize.
