---
sourceDocument: Brazil Enable AI
sourceDocumentLink: https://www.servicenow.com/docs/r/intelligent-experiences

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Configure OAuth for Veza in ServiceNow

# Configure OAuth for Veza in ServiceNow {#ariaid-title1}

Release version: Brazil  
Updated September 8, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
Set up two application registries, their OAuth entity scopes and credentials, then link them to the pre-provided connection alias, so that AI Control Tower can authenticate to Veza using OAuth 2.0.

## Before you begin

Confirm the following are in place:

* The OAuth 2.0 client and OAuth 2.0 app you created in your Veza tenant, along with their client IDs and client secrets. See [Configure OAuth in Veza](https://www.servicenow.com/docs/7G2cQTN0PxCykr9aDhj8bQ "Create an OAuth 2.0 client and an OAuth 2.0 app in your Veza tenant so that AI Control Tower can authenticate to Veza using OAuth 2.0 instead of an API key.").

Role required: admin

## About this task

AI Control Tower uses two application registries on the ServiceNow platform: one configured with the client credential grant type for system-level access, and one configured with the authorization code
grant type so that each AI steward can get their own per-user token. Each can link to the same pre-provided <kbd class="ph userinput">SN AI Security Veza Connector</kbd> connection alias, but not at the same time.  
Important:  
Set the refresh token lifespan to 2,592,000 seconds (30 days) on both application registries. This must match the refresh token expiration configured on the Veza side. If the ServiceNow value is longer than the Veza value, token refresh fails after the Veza-side token expires.
{#gov-sec-configure-veza-servicenow__table_veza_app_registry_values__entry__3}

| Field | Client credential application registry | Authorization code application registry |
|-|-|-|
| Client ID and client secret | From the Veza OAuth 2.0 client | From the Veza OAuth 2.0 app |
| Grant type | Client Credentials | Authorization Code |
| Authorization URL | Your Veza tenant's <kbd class="ph userinput">/oauth/authorize</kbd> endpoint | Your Veza tenant's <kbd class="ph userinput">/oauth/authorize</kbd> endpoint |
| Token URL | Your Veza tenant's <kbd class="ph userinput">/oauth/token</kbd> endpoint | Your Veza tenant's <kbd class="ph userinput">/oauth/token</kbd> endpoint |
| Redirect URL | Not applicable | Your instance URL followed by <kbd class="ph userinput">/oauth_redirect.do</kbd> |
| Use PKCE | Clear the check box | Select the check box |
| Refresh token lifespan | 2,592,000 seconds (30 days) | 2,592,000 seconds (30 days) |
[Table 1. Application registry field values]

{#gov-sec-configure-veza-servicenow__table_veza_app_registry_values}

## Procedure

1. Navigate to AllSystem OAuthApplication Registries and create two new application registries using the values in the preceding table.  
   ServiceNow automatically generates an OAuth entity profile for each application registry.
2. On each generated OAuth entity profile, create an OAuth entity scope with the scope value servicenow:aict:read.
3. Create an OAuth credential for each application registry.  
   On the authorization code-based credential, set Integration type to Personal so that each AI steward authenticates with their own identity. The client credential-based credential doesn't expose this field; it's always System.
4. **Optional:** On each OAuth credential record, select Get OAuth Token to verify that the credential can reach Veza.  
   For the client credential-based credential, you don't need to do anything further --- the token refreshes automatically. For the authorization code-based credential, you're redirected to log in to Veza and authorize access.
5. Navigate to the pre-provided <kbd class="ph userinput">SN AI Security Veza Connector</kbd> connection alias and link either or both credentials to the SN AI Security Veza Connector alias, one per connection. Only one connection can be Active at a time.  
   Choose based on how you want AI stewards to authenticate:
   * Set the connection linked to the client credential-based OAuth credential to Active so that all AI stewards share one system-level token. No AI steward needs to individually authenticate with Veza.
   * Set the connection linked to the authorization code-based OAuth credential to Active so that each AI steward gets their own personal token. Each AI steward must select Re-Authenticate and log in to Veza before they can view access intelligence data. See [Discover your agent network with the map](https://www.servicenow.com/docs/CV8y3VVCjI7z1ADwhS8QWA "Use the agent map to visualize your entire agentic ecosystem, including ServiceNow and third-party AI assets.").
{#gov-sec-configure-veza-servicenow__steps_veza_servicenow}

## Result

OAuth is configured on the ServiceNow platform. Create the AI connection for Veza next. See [Create an AI connection for Veza access intelligence](https://www.servicenow.com/docs/FHRGJNsJnYwPZkHUkrGBdQ "Connect AI Control Tower to Veza using OAuth 2.0 so that agent risk scores and severity levels from Veza access intelligence appear in the agent map. Since Veza is an enrichment connector, it doesn't import new assets.").

*[\>]: and then


