A ServiceNow mobile app can require a six-digit PIN, ask users to re-prove their credentials before sensitive actions, and limit which mobile apps may sign in. Users create the PIN inside the app, admins set the rest through system properties and extension points. This guide covers each control and how they interact.
Three controls that work in layers
Mobile access involves three separate decisions. The first is whether a person needs a local PIN before the app opens. The second is whether a specific action needs a fresh credential check. The third is which mobile apps may sign in at all. A device can sit behind a PIN and still reach the instance through a permitted app, and an allowed app can still face a re-authentication prompt on one action. Plan them together and test each combination on a real device. For how these decisions sit within the wider mobile access design, see the mobile experience security and access design guide.
How the mobile app PIN behaves
Once enabled, the PIN is requested when a user logs in from the mobile device and after the app has been inactive for more than five minutes. On phones with Face ID, Touch ID or a similar biometric sensor, users can use biometrics in place of the PIN.
Turning on the PIN requirement
An admin enables the requirement with a true/false system property named glide.sg.require_mobile_application_pin. Open the system properties list, find that record, and set its value to true. From then on, the mobile app locks after five minutes of inactivity and the user must enter the PIN to return.
Creating and changing a PIN on a device
To create a PIN, the user opens Settings, goes to Security, and chooses the option to require an app PIN. The app asks for six digits, then for the same six digits again. A fingerprint option can be switched on at the same point if the phone supports it.
To change a PIN, the user enters the current PIN, then a new six-digit PIN, then repeats it. Removing a PIN is a separate procedure. Both the create and change procedures list the admin role as a prerequisite, so confirm the account before walking a colleague through the steps.
Re-authentication for sensitive mobile actions
Re-authentication makes a user prove their credentials again before a mobile action runs. It is set per action rather than for the whole app. In the Action functions table, the Preconditions field can be set to Re-authentication, and that action then waits until the user has re-authenticated. The same field also offers HR Task Credentials, which asks for credentials before submission and is supported with local authentication.
Choosing SSO or local login
The property glide.authenticate.reauth.login.method takes sso for single sign-on or db for local login, and it is set at the Global application scope. Match it to how users normally sign in. For how single sign-on is set up on the instance, see the single sign-on setup guide.
When the method is sso, glide.authenticate.reauth.login.sso_id can name the identity provider, using the sys_id from the SSO properties table. Leave it undefined and the system reuses the provider that regular login uses, which suits a standard setup.
The property glide.authenticate.reauth.logout.first decides whether users sign out before re-authenticating. Some SSO providers may require a logout before the re-authentication flow can be enabled, so test that step with your provider before turning the feature on for production actions.
Single-use or time-limited re-authentication
The property glide.sg.reauthentication.single_use_token defaults to true, which requires re-authentication before each action. Set it to false to let a user run several actions on one authentication.
With single-use set to false, glide.authenticate.reauth.token.lifespan sets, in whole seconds, how long a re-authentication remains valid. It applies to users who have permission to re-authenticate for several actions. A longer window means fewer prompts and also a single check covering more actions, so choose the shortest value the workflow tolerates.
Limiting which mobile apps can sign in
Admins can restrict which native apps log in to an instance. There are two modes: a basic list held in a system property, and an advanced script that can also send a blocked user to an approved app. Use one mode per instance. If both are configured, the advanced configuration takes priority.
The basic allowed app list
Create a string system property named glide.sg.allowed_mobile_apps in the global application scope. Enter the name in lower case, because it is case-sensitive. The value is a comma-separated list of iOS bundle IDs and Android package names. An app not on the list sees a message saying it cannot access the instance. A reference topic lists the identifiers for ServiceNow’s own apps, so copy from that list rather than guessing. Test with a device on each platform before saving, since a list naming one app blocks the rest.
The advanced allowance with a redirect
The advanced mode runs through the extension point global.CustomPreAuthProperties. Edit the Example field, which holds two properties. The first, allowed_mobile_apps, carries the comma-separated identifiers. The second, blocked_mobile_apps_redirect, is a URL behind a button on the error message, letting the user move to an approved app. After saving, create the implementation, which generates a script include registered as an instance of the extension point.
Choose advanced when a redirect is part of the design. The advanced allowance can cause performance issues if the extension point is not written for performance, so keep the script lean. A sample script branches on the client type and the device type, giving each combination its own allowed app and store redirect.
Android sign-in and external browser settings
Keeping the app alive during Android authentication
On some Android devices, switching to an authenticator app can lead the operating system to stop the ServiceNow app. Memory pressure, battery saver and background app limits are the named causes. The app may then restart, and fail to return to its native screen after login. The restart pattern appears on OEM Android phones such as Redmi, POCO and Oppo.
The remedy is a mobile property named preventAppKillOnAuth. It is off by default and must be created in the sys_sg_properties table as a True/False record with the value true. Select Is Public so the pre-authentication API exposes it before sign-in. Set it when you see the restart symptom, not as a general default. The property is supported from mobile client release 20.6.0.
Opening external links with a shared session
Cookies are not shared between the app’s browser and the browser that opens external sites. A user who taps a link to another platform using the same single sign-on provider may therefore have to sign in again. Admins can configure browser types so the session carries over. Four properties do this: SNExternalBrowseriOS, SNAuthenticationBrowseriOS, SNExternalBrowserAndroid and SNAuthenticationBrowserAndroid. They sit in the CustomPreAuthProperties script include. Accepted values include safari, chrome, firefox and edge, plus several managed-device browsers. The external and authentication values for a platform must match, or the SSO session will not persist between sign-in and other browsing.
Because the advanced allowance and the browser settings both live in global.CustomPreAuthProperties, make those changes in one editing pass and test sign-in on each platform after each save.
Settings at a glance
| Setting | Where it lives | Accepted value |
|---|---|---|
| App PIN requirement | glide.sg.require_mobile_application_pin | true or false |
| Re-authentication precondition | Preconditions field, Action functions table | Re-authentication |
| Re-authentication method | glide.authenticate.reauth.login.method | sso or db |
| Re-authentication provider | glide.authenticate.reauth.login.sso_id | sys_id of an SSO provider |
| Re-authentication logout first | glide.authenticate.reauth.logout.first | true or false |
| Single-use re-authentication | glide.sg.reauthentication.single_use_token | true (default) or false |
| Re-authentication lifespan | glide.authenticate.reauth.token.lifespan | Integer, seconds |
| Basic app allowance | glide.sg.allowed_mobile_apps | Bundle IDs and package names |
| Advanced app allowance | Example field, global.CustomPreAuthProperties | allowed_mobile_apps, blocked_mobile_apps_redirect |
| Android keep-alive | preventAppKillOnAuth, sys_sg_properties | True/False, off by default |
| External browser | SNExternalBrowserAndroid and related | Browser names, matched per platform |
For platform-wide sign-in methods and trusted-device rules, see the authentication methods guide and the adaptive authentication guide. The mobile experience hub groups the wider planning topics.
Frequently asked questions
Does the PIN replace login to the instance?
No. The PIN is an added check on the device. Users still sign in to the instance, and the PIN prompt appears alongside that sign-in and again after inactivity.
Should I use the basic list or the advanced allowance?
Use the basic list unless you need a redirect. It is one system property. The advanced allowance adds a sign-in script and a redirect button to the error message, so it earns its place when a blocked user should be sent to an approved app.
Why does a user see an unable-to-log-in message?
The app is not on the allowed list. Check its bundle ID or package name against glide.sg.allowed_mobile_apps, or against the allowed_mobile_apps entry in the advanced script if that mode is in use.
Why does re-authentication ask for credentials on each action?
The single-use property defaults to true. Set glide.sg.reauthentication.single_use_token to false to allow several actions per authentication, then set the lifespan in seconds for users with that permission.