Skip to content

ServiceNow and the sfe browser

ServiceNow is where our incidents, major incidents and requests live. It sits behind the WGU single sign-on, and it has no token we can save, so sfe reads it through a browser that we sign in to once: the sfe browser. This page covers both the system and that browser.

Video, about one and a half minutes, with narration and captions.

The video shows sfe's own checks for this sign-in, from a real run. The browser part of a sign-in, where we type our password and approve it, is ours alone, so the video describes it and does not record it.

What it is used for in sfe

  • sfe snow get MI0007755 reads one ticket by its number, and sfe snow notes reads its comments and work notes. sfe snow mi lists major incidents, and sfe snow mine lists open tickets assigned to us.
  • A bare ticket number, such as sfe MI0007755, is looked up in ServiceNow too.
  • The ticket prefix says which table to read: MI for major incidents, INC for incidents, RITM, REQ and SCTASK for requests and their tasks, CHG for changes, PRB for problems, KB for knowledge articles.

sfe reads with GET requests only, and uses the page's own session token. Nothing is stored.

The sfe browser

The sfe browser is a Chrome of its own, apart from the Chrome we use every day. It has its own profile, in ~/.sfe/chrome-profile. What we sign in to there stays signed in after sfe, an agent, Chrome or the Mac restarts. sfe and every coding agent use this one Chrome. Our everyday Chrome is never touched.

Command What it does
sfe browser setup The one-time setup. It opens the sfe Chrome with no automation, as we open Chrome every day, so we can sign in. Everything in it is optional: signing in to Chrome with a Google account for sync, adding a password manager, signing in to the sites we use. We quit that Chrome with Cmd+Q when we are done
sfe browser start Starts the sfe Chrome and signs in to WGU once. It is the fix line the doctor prints for ServiceNow
sfe browser status Says whether the sfe Chrome runs, its tabs and where walkthroughs go. It only reads
sfe browser open Opens the sfe Chrome, started if it is not running, and brings a tab forward
sfe browser stop Closes it. Every sign-in is kept
sfe browser reset Starts over with an empty profile, after we type reset. The old profile is moved aside, not deleted

Touch ID, passkeys, security keys, verification codes and push approvals all still ask us, as they do in our own Chrome. sfe skips none of them. When a page asks us to sign in, the tab comes forward and sfe says Authentication required. Complete sign-in in the browser to continue. We sign in, and sfe carries on.

What must be signed in

What Detail
The tool Google Chrome, which sfe doctor browser checks
The command sfe browser start. It starts the sfe Chrome and opens the WGU sign-in
What we type Our password, the MFA code or approval, in the sfe Chrome window. We type them, never sfe and never an agent
How long it stays Until the site ends it. Closing Chrome normally keeps it. Chrome crashing or being forced to quit can lose it, and then we sign in once more

Environments

There is one ServiceNow, https://wgu.service-now.com, and it is production. sfe marks it [PRODUCTION]. Our team's assignment group is Enrollment Support & Ops.

What a successful sign-in looks like

sfe status has a servicenow row that says signed in (sfe Chrome window):

servicenow  yes  -  https://wgu.service-now.com [PRODUCTION]  signed in (sfe Chrome window)

sfe doctor servicenow shows a green tick for ServiceNow sign-in (sfe Chrome window). sfe doctor browser shows ticks for Google Chrome installed and for the sfe Chrome profile. All of these only read.

On a Mac where it is signed in, sfe doctor servicenow looks like this:

sfe doctor servicenow: the sign-in in the sfe Chrome window

And sfe help browser start, which only reads:

The help of sfe browser start

Steps

  1. We run sfe doctor servicenow. If the sfe Chrome is not running, it prints sfe browser start.
  2. We run sfe browser start. A Chrome window opens.
  3. In that window we sign in to ServiceNow with our WGU account. We type our password and approve the MFA ourselves.
  4. We run sfe doctor servicenow again, and then sfe snow mine.
  5. When we finish for the day, we run sfe browser stop. This is worth doing: while the sfe Chrome runs, another program on this Mac could use its debugging port, and so use the sites we are signed in to there.

Troubleshooting

What we see Likely cause What to do
the sfe Chrome is not running The sfe browser is closed Run sfe browser start
not signed in to ServiceNow (the sfe Chrome is at ...), or exit code 4 The ServiceNow sign-in is missing or has ended Sign in to ServiceNow in the sfe Chrome window, then run the command again
the session may have expired; sign in again in the sfe Chrome window The session ended Sign in again in that window
A line ServiceNow answered with its sign-in page; reloading the page once so the sign-in can renew ServiceNow's own session ended. Our company sign-in usually lasts longer, so a fresh page often lets us straight back in Nothing. sfe reloads the page once and tries again by itself. We only sign in when it still fails after that
ServiceNow's answer was ... characters, more than ... sfe reads in one go The answer was too long to read in one go, for example many major incidents with long timelines. None of it is shown, so we never see half an answer Ask for fewer rows with --limit, or a shorter window with --since
We are asked to sign in several times a day ServiceNow ends its own session after some time without use When we sign in in the sfe Chrome, we tick "Stay signed in" on the company sign-in screen. Then sfe's reload can usually get back in without us
your ServiceNow role cannot read this table Our ServiceNow role does not include that table Ask the ServiceNow owner for the access. sfe cannot get around it
We are asked to sign in again after Chrome crashed A crash can lose a sign-in that was not yet written to disk Sign in once more
An agent opens a Chrome of its own It should not: the chrome-devtools helper that sfe agent install adds attaches to the sfe Chrome Run sfe doctor agents

Next


Last reviewed: 2026-12-02