The ServiceNow OAuth application registry is the list of OAuth applications your instance recognises. Each record, stored in the oauth_entity table, holds a client ID and a client secret, plus redirect URLs where the flow needs them. An outside application presents those credentials to obtain access tokens, so it can call ServiceNow without a user’s password.
What the Application Registry actually holds
Open the navigator, search for System OAuth, and choose Application Registry. What you see is a list of oauth_entity records. Each one describes a single client relationship, and it can point in two directions.
In the first direction, the instance is the provider. An outside program, such as a reporting tool, a mobile app or a middleware platform, wants to read or write ServiceNow data through the REST and SOAP integrations the platform offers. You register that program here, and the instance hands out tokens to it. This page covers that case.
In the second direction, the instance is the consumer. It needs to call someone else’s API, such as a mail service or another vendor’s platform, and the registry stores the details for that provider. That outbound side is easier to follow once you know how an outbound REST message works and what an OAuth profile does. The form you fill in is different. If you create the wrong kind of record, the symptoms are confusing: the fields you expect are missing and token calls fail to find a client.
When you click New in the registry, an interceptor page asks which situation you are in. The option to create an OAuth API endpoint for external clients is the one that makes your instance the provider; the other kinds of record are for different purposes, so leave them alone for this task.
Why OAuth instead of basic authentication
Basic authentication sends a username and password with every request. If the integration is compromised, so is a real account, and changing that password breaks every script that uses it.
OAuth separates the pieces. The client application has its own identity (the client ID and secret). The user or service account is a separate matter. The access token is short lived and can be revoked without touching a password. In practice this gives you two things you do not get with basic auth: tokens that expire on a schedule, and a way to cut off one integration without touching any other.
That second benefit is the one administrators notice first. When an integration is retired, or a vendor relationship ends, you deactivate one registry record and the other integrations carry on. With a shared password, the same clean-up means a coordinated change across every script that used it, usually at an inconvenient hour.
Register an OAuth client for an external application
- Sign in with an account that holds the oauth_admin role. Some earlier releases list the admin role instead.
- Go to System OAuth, then Application Registry, and click New.
- On the interceptor page, choose the option to create an OAuth API endpoint for external clients.
- Give the record a name that identifies the integration, not the person who built it. “Data warehouse nightly extract” will make sense to someone in two years. “Test OAuth 2” will not.
- Look at the client ID. The instance generates it, and you cannot edit it.
- Handle the client secret. If you leave it blank, the instance generates one when you save. Either way, copy it into your secret store straight away, and treat it like a password. Where the secret is held on the instance side for outbound calls is a separate topic, covered in connection and credential aliases.
- If the client uses the authorization code flow, fill in the redirect URLs. Enter the full address of each client that will request tokens, with /oauth_redirect.do added to the end. Add one entry for each possible token consumer. If an incoming request does not match any entry, the instance falls back to the first redirect URL in the list, so keep that list tidy.
- Submit the form. The instance creates an oauth_entity record of the OAuth Client type.
Decide who is acting before you register
One decision shapes the whole record: who is acting when the integration calls the instance. If a person signs in and approves access, such as someone using a web or mobile app, the flow needs a redirect URL, because the browser has to be sent back to the client after approval. If a scheduled job acts on its own, with nobody present, the flow has no browser step and no redirect.
Settle this with the team that owns the client before you open the form. The person building the client usually knows which flow they are coding against, and a registry record created without that conversation tends to be rebuilt later.
A refresh token is not something you choose on its own. It is the means of renewing an access token without asking the user to sign in again. Because it outlives the access token, protect it as carefully as the client secret.
What a working token call looks like
Once the record exists, the client sends its credentials to the instance and receives an access token. The client then adds that token to the authorization header of each REST call. The call typically runs as a ServiceNow user whose roles and access controls still apply.
That last point catches people out. A valid token does not grant data access on its own. If the call returns an empty result or a permissions error, the cause is often the user behind the call, not the registry record. Give the integration account the narrowest roles that let the job finish, and check access control rules before you suspect the OAuth setup. The wider picture is in the guide to instance security and access control.
Common problems and where to look
- The redirect does not match. The client sends one address and the registry holds a slightly different one, often a missing port, a trailing difference, or http versus https. Compare them character by character.
- Invalid client errors. The client ID or secret is wrong, usually because the secret was regenerated and the client was not updated.
- Token works, data missing. See the point above about the user behind the call and that user’s roles.
- Token expired mid job. A long export outlives the access token. Have the client renew its token, or request a fresh token before each batch. For other failure patterns, the troubleshooting guide for instance security is a useful next stop.
- Wrong record type. The record was created as an outbound provider entry instead of an external client endpoint. Create a new one with the correct option and retire the old one.
When something fails, change one thing at a time. Fix the first symptom, repeat the call, and only then look at the next. Changing the secret, the redirect and the integration user in a single pass leaves you unsure which change mattered.
Housekeeping that saves trouble later
Keep one registry record per integration. Sharing a client between two systems means a rotated secret breaks both.
When rotating a secret, update the secret store the client reads from, then change the record, then confirm a fresh token call works.
Review the list now and then, and deactivate records for integrations switched off long ago.
A practical order of work for a new integration
A new integration goes more smoothly when the pieces are prepared in a sensible order, because the registry record is only one of several things that must line up.
Start with ownership. Name a person or team who is responsible for the record, the secret and its rotation. Records without an owner tend to linger for years after the integration they served has gone.
Next, create the integration user and give it the narrowest roles that fit the job. Do this before the registry record, so that the first token call you make is already running with realistic permissions, and you see real access problems early instead of after go-live.
Then register the client, store the secret, and run one token call from a test client against a non-production instance. Send a simple read request and confirm it returns the data you expect for that user. Only after that should the real application be pointed at the instance.
Finally, hand over in writing. A short note listing the record name, the owner, where the secret lives, who to call when it must be rotated, and which instance the integration uses will save the next administrator a long afternoon.
Frequently asked questions
Is the Application Registry the same as an OAuth provider?
No. The registry is the table where OAuth entities are listed. A record in it can describe your instance acting as the provider for an outside client, or an outside provider your instance connects to. The interceptor page at creation time decides which.
Do I need to generate the client secret myself?
No. If you leave it empty the instance creates one on save. Either approach works. What matters is that you store it somewhere safe immediately.
Can I register more than one redirect URL?
Yes. Add an entry for each client that may request tokens. Requests that match none of them fall back to the first entry, which is a reason to keep the list short and accurate.
Can I change the client ID?
No. The instance generates it and you cannot edit it. If an integration needs a different identity, create a new record and retire the old one.
Why does my valid token still return no data?
The call typically runs as a ServiceNow user, so that user’s roles and access controls still apply. If the user lacks the roles that the access control rules for the table require, the result is empty or denied. Test the same request while impersonating the integration user.