Set up auto-login for ServiceNow AI Lens
Pre-configure your organization's ServiceNow® instance URL so that it appears ready-filled when users launch the ServiceNow AI Lens desktop application, and enable auto-login so that users can skip signing in on subsequent launches.
Before you begin
Role required: admin
ServiceNow AI Lens must be installed on the user's machine. For more information, see Download the ServiceNow AI Lens installer.
Procedure
On the user's machine, open the
app-config.jsonfile from the following location depending on the operating system:- Windows:
<username>\AppData\Roaming\servicenow-lens\app-config.json - Mac:
/Users/<username>/Library/Application Support/servicenow-lens/app-config.jsonNote: The folders in the file path may be hidden by default. Unhide them before navigating to theapp-config.jsonfile.
- Windows:
In the
app-config.jsonfile, enter your organization's ServiceNow® instance URL as the value for theinstanceUrlfield.{ "instanceUrl": "https://<your-instance>.service-now.com" }Note:
- The
app-config.jsonfile is unique to each user on the machine. If ServiceNow AI Lens is installed for all users, the administrator must update theinstanceUrlfield in each user'sapp-config.jsonfile individually. If it is installed for a specific user only, that user can update their ownapp-config.jsonfile. - If you change the instance URL on the login screen and successfully sign in, AI Lens saves the new URL. The next time you launch ServiceNow AI Lens, the updated URL appears in the
instanceUrlfield. To enable auto-login, perform the following steps.
Navigate to All > System Definition > All Properties.
Tip: If your instance can't navigate to All Properties, in the search field, enter
sys_properties.listand press Enter.Search for
sn_app_lens_core.lens_enable_auto_loginproperty.In the value field, set the value to true, and select Update.
- The
Auto-login property value.
**Note:** When this property is enabled, ServiceNow AI Lens automatically signs in users on subsequent launches without showing the login screen. If a user signs out or their sign-in expires, the login screen reappears with the instance URL already filled in. If you manually update the `app-config.json` file after your first login, you will be prompted to sign in again.