An OAuth profile in ServiceNow links an outbound integration to the authentication configuration it needs to get access tokens. For outbound REST calls, set up the third-party provider, pick the new profile on the REST message, request a token, and test the resource call. Whether a token can be renewed depends on the grant and the integration.
Map the OAuth profile in ServiceNow before configuring calls
Start with the direction of the request. This page covers ServiceNow calling an external API. Record which outside application takes the call, which authorization server issues its tokens, and which ServiceNow REST message or credential record will use the profile. If you can find all three records easily, later troubleshooting is simpler.
The application registry, OAuth Entity Profile, and REST message each have their own job. In the Qualys setup, the registry holds the credentials used to request a token. ServiceNow creates an OAuth Entity Profile, and the REST message picks that profile. So saving the registry leaves one more step before the outbound message can authenticate.
Pick names that show the provider, environment, and purpose. As a team habit, use that pattern every time. Then an administrator who is chasing a failed scheduled call can find the right credential without opening several records with similar names. Keep a short record of names and owners. Do not put secret values in it.
To see where outbound calls fit, use the REST and SOAP integration guide. Check the field layout and the authentication options on your instance and release. The steps here follow Brazil configurations.
Prepare the provider and choose the authentication design
Before you edit the REST message, gather the client ID, the client secret where needed, the token endpoint, and the outside account you plan to use. Agree on which API operations the integration needs.
For a client credentials design, plan how the integration will get a new access token. In the outbound Private Key JWT configuration, Client Credentials is a Default Grant type option, and it gives no refresh tokens. So a configured Refresh Token Lifespan field should not be treated as evidence that this grant will return a refresh token.
Private Key JWT adds certificate and signing configuration. The outbound setup needs a JKS certificate, a JWT signing key, and a JWT provider tied to that signing key. The role needed to set up Private Key JWT for outbound OAuth is oauth_admin. Have those parts ready before you build the provider record.
JWT Bearer is a separate choice. A Docusign connection template uses a JWT Bearer grant in the OAuth entity profile, along with a JWT provider, signing material, and claim values. Do not pick a grant just because its name has JWT in it. Find out which token exchange the outside provider expects before you turn it into ServiceNow records.
On the Private Key JWT provider form, tell the endpoint fields apart before you enter values. Token URL names where token requests go. Token Revocation URL names where tokens can be revoked. Authorization URL serves the authorization-code exchange, and Redirect URL gives its callback location. If you leave Redirect URL empty, the instance fills in that entry.
Review Application and Accessible from together. One names the application and scope that hold the record. The other controls whether access spans application scopes or stays within its own scope. Select Active to turn on the provider record. Check these settings when you review the provider, next to the signing configuration.
Connect a REST message to its OAuth profile
The Qualys setup gives a real outbound REST sequence. Its listed roles are admin, sn_vul.vulnerability_admin, and web_service_admin and oauth_admin. Use the permissions that integration asks for. Do not assume a role from another OAuth procedure applies here.
- For the Qualys Vulnerability Integration, open All > Vulnerability Response > Administration > Setup Assistant > Integration Configuration > Scanner Integrations. Select Edit for the integration and open Advanced Settings.
- Set the Authentication method integration parameter to OAuth. This stops that integration from using Basic Authentication credentials. It does not finish the OAuth setup.
- Open All > System OAuth > Application Registry, select New, and choose Connect to a third party OAuth Provider – Outbound. Enter Name, Client ID, Client Secret, and Token URL, then select Submit.
- Open All > System Web Services > Outbound > REST Message and select the right Qualys message. Set Authentication type to OAuth 2.0 and select the new profile in OAuth profile.
- Save the record and select Get OAuth Token. Repeat the REST message configuration for each Qualys message that needs OAuth.
The second step matters when you move away from Basic Authentication. A changed integration parameter and an unset REST message can exist side by side. Check both the integration setting and the chosen profile before you look at the token server.
For scripted outbound work, the related authentication profile selection guide covers the nearby task of picking a profile in code. Keep the configured message and any script that uses it tied to the intended authentication record.
Validate the token and the business operation separately
Before you mark the integration ready, agree with the receiving team which record or data set a small, controlled resource request should return. Then record two things: whether you got a token, and whether the request returned that result from the right outside environment. Keep access tokens, client secrets, and signing material out of test notes. A test record needs enough detail to reproduce the configuration, but it should not become another place to store credentials.
The 3E Protect integration shows the credential path. Its configuration requires admin. Go to All > IntegrationHub > Connections and Credential Aliases, open 3E Credentials, and then open the credential record from the Credentials column. Check OAuth Entity Profile and select Get OAuth Token under Related Links.
The system uses the client ID and secret tied to the profile to fetch an access token. For 3E Protect, test the result with a sync request from a chemical record. A good fetch fills in chemical data, including hazard identification, ingredient data, and SDS documents. This tests the operation that relies on the token, not just the token request.
The 3E Regulatory Intelligence setup also needs admin. It uses 3E Regulatory Credentials and a regulatory-list sync from a chemical substance record. A good sync fills in the Regulatory tab. Use the record and test action for the integration you installed. Similar credential names are no substitute for a deliberate profile check.
For help planning the setup work, see ServiceNow implementation.
Plan token renewal and diagnose failures in order
The 3E integrations refresh the token on their own at later syncs. Their credential records can show a banner that asks for a new token request when expiry needs attention. This behavior does not set a universal renewal rule for other REST messages or providers. Add a later sync to your acceptance tests, so the first good request is not the whole test.
When you cannot get a token, compare the chosen profile, the client credentials, and the token endpoint with the provider’s registration. When you get a token but the retrieval fails, look at the business request on its own. Note that difference in the incident record. Then another administrator will not rebuild the authentication again and again for a problem elsewhere in the call.
After a credential change, repeat both acceptance checks and note which integration ran them. Plan the change with the person who owns the outside registration, most of all when several messages reference the same configuration. Put the list of dependent items in the change record so the test scope is clear.
Use the REST and SOAP troubleshooting guide when authentication checks lead you into request or response diagnosis. Record the failing stage, the selected configuration, and the expected and seen results.
Questions about choosing and maintaining OAuth configurations
Can a connection template collect provider-specific JWT settings?
Yes. The Docusign JWT Bearer template keeps default record creation apart from a dynamic data schema. That schema can collect issuer, subject, audience, key ID, and keystore input. Plan those inputs next to the credential and connection records. The profile name alone is not the full JWT configuration.
Where does custom handling for an external OAuth provider belong?
The outbound provider form has OAuth API Script, which changes requests and responses sent to the outside provider. Before you add custom code, write down the provider need behind it and define a test for the changed exchange. That ties each provider-specific change to a clear reason.
Can token requests use mutual authentication?
The outbound provider configuration has Use mutual authentication for token requests and revocation. If you select it, you need a mutual authentication profile. Add that profile to your review if the outside authorization server requires this authentication arrangement.
Why might Private Key JWT fields be absent from the form?
The Private Key JWT setup needs you to add Send Credentials and JWT Provider to the form. Send Credentials is set to As Private Key JWT, and JWT Provider names the provider to use. Check the form configuration before you treat missing fields as a failed certificate setup.
What should a handover record include?
Include the provider record name, the message or credential that uses it, the environment, the owner of the outside registration, the validation action, and the expected business result. Add the next review point for credentials or signing material. These are recommended operating notes. Store sensitive values through the approved credential process, not in handover text.