OBLYTECH Logo
OBLYTECH Logo

ServiceNow / Practical guide

ServiceNow Discovery Credentials: Govern Access and Scope

ServiceNow Discovery credentials should provide the access needed for a defined discovery task without becoming an unexplained path into every target. Governance covers purpose, scope, ownership, rotation, testing, failure handling, and evidence that the access remains appropriate.

For infrastructure and security owners governing the credentials and access used by ServiceNow Discovery..

ServiceNow Discovery credentialsDiscovery accesscredential management

Guide map

Turn credential governance into a repeatable review.

Define why each credential is used

Each credential should have a documented job, owner and boundary before it is used.

Limit scope and separate responsibilities

Give approval, administration and target ownership to different people where the risk warrants it.

Test, rotate, and monitor access

Test each credential after a change, so failures trace to access, not to the network.

The practical framework

Govern ServiceNow Discovery credentials with least-privilege scope, ownership, rotation, test evidence, failure handling, access review, and audit records.

Define why each credential is used

Record the target type, discovery activity, access level, owner, source of approval, and expected result. A credential should have a clear job and a boundary that can be reviewed. Avoid leaving a credential in place because the original reason is no longer remembered.

The ServiceNow Discovery-planning route is the relevant internal destination when credential scope is part of discovery design.

Limit scope and separate responsibilities

Use the smallest practical access scope and keep approval, administration, target ownership, and review responsibilities distinct where the risk requires it. Document exceptions rather than making broad access the default solution to a discovery gap.

The ServiceNow access-controls route provides an internal path when permission and evidence boundaries need review.

Test, rotate, and monitor access

Define how a credential is tested, when it is rotated, what evidence confirms the change, and who checks that discovery still works afterward. Monitoring should distinguish an expired credential from a network, target, permission, or mapping problem.

The ServiceNow ITOM route is relevant when discovery results support operational context and service decisions.

Handle failures without widening permissions

When discovery fails, capture target, time, credential reference, error evidence, recent changes, and owner. Investigate the narrow cause before granting broader permissions. A temporary exception should have an expiry and review trigger.

The ServiceNow integration-error route gives an internal path when technical failure analysis is required.

Review evidence and ownership

Review credential inventory, active scope, owner, rotation evidence, failed attempts, exceptions, and discovery results. Remove credentials that no longer support an approved task. Keep the decision record when a credential is retained or its scope changes.

The ServiceNow health-check route supports periodic control review.

Common questions

Questions teams ask about Discovery credentials

Should one credential cover every target?

Only when the access boundary, ownership, risk, and operational need justify it. Separate credentials or scopes may make review and failure isolation clearer.

What should happen after a credential failure?

Record the evidence, confirm whether the failure is access-related, technical, or target-specific, assign an owner, and apply the smallest correction. Document any temporary exception and its expiry.

The research-grounded boundary

A controlled access or governance decision needs an explicit contract for inputs, decisions, exceptions, and review, even when the platform supplies the visible feature. That is the part most likely to be missed when a team looks only at the feature itself. Use that distinction to decide what belongs in configuration, what belongs in governance, and what belongs in support.

Map Each Credential to One Discovery Job

A credential that is useful to discovery is one that can be described in a single sentence: it reads a named set of hosts for a named activity, on a named schedule, and nothing else. Teams that cannot write that sentence usually have a service account created during an early pilot that now serves several scans, a few integrations and an administrator’s convenience. The first governance step is to split those uses apart. Each job gets its own record, and each record states the access level that is enough for that job and nothing wider. For the wider discovery model, see the discovery and service mapping service.

Discovery jobTargets it reachesAccess that is enoughWho approves a change
Scheduled scan of a server estateOne defined address range or host groupRead access to the system details that discovery recordsPlatform owner, with the infrastructure owner consulted
Cloud account inventoryOne subscription or account, with named regionsRead-only role scoped to inventory callsCloud platform owner
Database or middleware identificationSpecific instances listed by the application ownerRead access that does not expose stored dataDatabase owner, with the security reviewer for sign-off
Manual investigation of one deviceA single named asset tied to a ticketTemporary access that expires with the ticketDuty manager, recorded against the ticket

The last row is the one most often ignored. Investigations are a common route to a permanent over-privileged account, because someone grants a broad role to clear a ticket and never takes it back.

Keep the Right to Hold a Secret Apart From the Right to Approve Its Use

In many estates the people who can read a vault entry are also the people who approve scans against it. That is convenient and weak. A cleaner pattern separates three things: the administrator who stores and rotates the secret, the owner who decides which targets it may reach, and the reviewer who checks that the recorded purpose still matches live activity. The reviewer does not need to hold the secret at all. Where the team is small, the same person can fill two roles, but the record should still show who approved each one. To check those roles in the platform, see the access controls review guide.

This separation also makes incident response clearer. When a credential is misused, the team can see whether the fault lies in the storage process, the approval, or the discovery configuration, rather than arguing about who had access.

Test a Credential Before Discovery Depends on It

A credential that has never been tested will fail at the worst moment, usually during a scheduled run that nobody is watching. Testing should happen against a small, known target set before the credential is attached to a production schedule. The sequence below is a workable pattern.

  1. Record the credential’s purpose, target type, access level, owner and approving source before anything else.
  2. Run a discovery against one known, low-risk target and confirm the records it returns match what the owner expects.
  3. Check that the credential cannot reach a neighboring target that it should not reach, using a deliberately out-of-scope host.
  4. Confirm the failure path: change the secret in a test copy and verify that the alert names the credential and the target, not a generic error.
  5. Attach the credential to the production schedule only after the previous four steps are recorded with their evidence. The discovery planning guide covers choosing a useful first scope.

The out-of-scope check in step three is the one teams skip. A scope rule that has never been tested against a host it should refuse is an assumption rather than a control.

Read a Failed Run Without Widening Access

When discovery fails, the instinct is to add permissions until the run succeeds. That turns a narrow fault into a broad exposure. A better first pass sorts the failure into one of a few causes, and each cause has a different fix. Expired or rotated secrets look like authentication errors. Network path problems look like timeouts. A permission gap looks like a partial result, where some attributes come back and others are missing. A mapping fault looks like records that arrive but are classified wrongly. Capture the target, the time, the credential reference, the error text and any change made in the previous week before deciding which cause fits.

Only a permission gap justifies a change to access, and even then the change should be the smallest one that restores the missing attribute. Monitoring that distinguishes these causes is part of the design, and the integration error handling guide covers classifying integration failures and designing safe retries.

How Credential Sprawl Builds Up Unnoticed

Sprawl follows a predictable path. A pilot creates a broad account because it is quick. The pilot becomes production without a review. A second team copies the credential into their own integration because the first one works. A temporary exception is granted for a migration and is never closed. None of these steps looks serious on its own. Together they leave an estate where nobody can say how many routes into a target network exist, which is the situation a later audit will ask about. The audit trail evidence guide covers records that explain what changed, why and by whom.

When a Shared Credential Can Be Defended

A shared credential is not always a mistake. Where two discovery jobs read the same non-sensitive inventory and share an owner, one account can be easier to manage than two. The condition is that the shared account has the narrowest scope both jobs need, a single documented owner, and a rotation plan that both schedules respect. If one job needs a wider scope, split the account at that point rather than widening the shared one for both.

Can one credential serve every discovery schedule?

It can, when every schedule reaches the same narrow set of targets with the same access level. Once one schedule needs more access or a different owner, it should have its own credential so that a failure in one does not stop the others.

How should rotation be timed around scheduled scans?

Rotate between runs rather than during them, and confirm that the new secret is picked up by the next scheduled job before the old one is retired. Keep the retired secret available for a short overlap only if the platform cannot switch cleanly, and record that overlap as an exception.

Who should receive the alert when a credential fails?

The credential owner should receive it, with the target team copied when the failure stops a service-critical discovery. An alert that goes only to a shared mailbox tends to be read by everyone and acted on by no one.

Does a read-only account always solve the problem?

It reduces the risk of changes but does not remove the need for scope. A read-only account can still expose sensitive configuration if it reaches systems it should not, so the target list matters as much as the permission level.

Review one live discovery credential, starting with the purpose sentence for each job, before the next rotation date. To discuss that review, contact OBLYTECH.

What credential discovery means in ServiceNow, and what it does not

ServiceNow Discovery uses credentials that your team stores in the instance to sign in to targets and read their configuration. It does not scan endpoints looking for passwords or keys that someone left behind. If the question is how to find exposed secrets on servers and laptops, that is a job for secrets-scanning and vault tooling. The question this guide answers is narrower: how to control the credentials Discovery uses to look at your estate.

Keeping the two ideas apart avoids a common mistake. Teams sometimes expect a discovery run to tell them which accounts exist on a machine, then find that it only reports what the supplied credential was allowed to read.

How a run chooses and uses a credential

A run normally works through the credentials that suit the target type, such as a Linux login, a Windows account or a network management string, until one works. The instance can remember which credential succeeded for an address and try it first next time. That saves time, and it also means a stale or overbroad credential can keep being used long after anyone reviewed it. Check the credential records periodically, not only the results.

DecisionTypical choiceWhy it matters
Where the credential livesIn the instance, or in an external vault that the MID Server readsRotation then happens in one place and the owner is clear
Which MID Server uses itThe one closest to the target networkCredentials stay inside the zone they were approved for
What it can readRead-only access to configuration dataA leaked credential cannot change a target

Automated discovery still needs a human owner

Scheduled runs make the process automatic, but not self-governing. Someone has to be named for each credential, and a rotation should be followed by a test run on a small range before the full schedule resumes. When a run starts failing, trace it to the credential first rather than widening access.

Planning scope and schedules is covered in the ServiceNow Discovery guides, and the MID Server guides explain how network zones and servers are arranged. For connecting discovery output to the rest of the service model, see Discovery and Service Mapping with operational controls.

A practical next step

Need a clearer ServiceNow operating model?

OBLYTECH can discuss the questions raised by this guide and the next review step. See the ServiceNow consulting services page for the commercial route.

Useful starting pointBring the current question, scope, ownership concerns, and evidence needs into the first review conversation.

ServiceNow guides on this topic

Guides from the Oblytech ServiceNow library that explain the practice behind this page.

More from the blog