Skip to main content

OAuth 2.0 for ServiceNow

This section describes the steps to configure Alteryx Analytics Cloud (AAC) to integrate with your ServiceNow deployment using OAuth 2.0 to authenticate.

Create OAuth 2.0 Client for ServiceNow

  1. Sign in to the ServiceNow developer account to create an instance for the OAuth app.

  2. Select Sign In and enter the credentials of your account.

  3. Select Start Building to create an instance.

  4. After your instance is created, select the profile logo > Start Building.  A new tab opens.

  5. In the Navigator, select All > System OAuth > Application Registry.

  6. Select New and select Create an OAuth API Endpoint for External Clients.

  7. Select the Active check box, enter a name for the app, and set a Client Secret or leave it blank to generate automatically.

  8. Enter a value in the Redirect URL.

  9. Provide the restriction for the scopes in the Accessible from (field) based on the requirement.

  10. Provide the time for the Access Token and Refresh Token.

  11. Select Submit. Now, you can go to the newly created app.

Note

Note the OAuthClientIdOAuthClientSecret, and CallbackURL values.

Steps to Register the OAuth 2.0 Client

  1. Sign in to AAC as a workspace administrator.

  2. Select Register OAuth 2.0 Client.

  3. Enter the following details as follows:

    • Type: service_now

    • Name: Display name of the O Auth 2.0 client in AAC.

    • Client ID: Set this value to the Client ID created above.

    • Client Secret: Set this value to the Client ID created above.

    • Authorization URL: Set this value to the following:https://<instance_name>.service-now.com/oauth_auth.do.

    • Token URL: Set this value to the following: https://<instance_name>.service-now.com/oauth_token.do.

    • Scopes: Provide the required scopes.

    • Access Token expires in: Set this value to 1800.

    • Refresh Token expires in: Set this value to 8640000.

  4. Select Create. The OAuth 2.0 client is created.

Create ServiceNow Connection

After you have created the two OAuth 2.0 client references, you can create a connection to your ServiceNow data.

For more information, see ServiceNow Connections.