Skip to main content

Configure ServiceNow objects and fields

Use the Objects tab to add ServiceNow tables to Glean and include additional fields on native objects. Configure each custom object's content and permissions before you enable indexing.

Choose an object type​

The Type column distinguishes the two configuration paths:

TypeWhat you can configureWhat stays unchanged
NativeAdd custom fields to a built-in object and manage its access settingsExisting native field mappings, document identity, result links, permissions, and crawl schedule
CustomAdd another ServiceNow table and configure its mappings, permissions, filters, and result linksThe source records and access rules in ServiceNow

A custom object can represent a standard ServiceNow table or a table your organization created. A table that Glean already treats as native keeps its native configuration path.

Prerequisites​

Complete the following prerequisites:

  • Set up the ServiceNow connector with a dedicated service account. See Setup.
  • Ask your account team to enable custom-object support and schema discovery for the connector. Native additional-field editing requires separate enablement.
  • Confirm that Glean has discovered the tables and fields you want to configure. The object picker and field selectors use this discovered schema.
  • Give the service account read access to the records and fields you want Glean to crawl. For custom objects, also prepare the permissions configuration. See Configure custom-object permissions.

The Objects tab can appear before native editing is available. If native objects have no three-dot menu, ask your account team to check native-object editing enablement.

Add fields to a native object​

Native objects retain their existing fields. Additional fields inherit the native document's permissions, so review the content for everyone who can already access that document in Glean.

  1. Go to Admin console → Connectors and open your ServiceNow connector.
  2. Open Objects and find the native object.
  3. Open its three-dot menu and select Edit.
  4. Open Fields and mappings.
  5. Click Add field and select a field from the discovered ServiceNow schema. For example, select assignment_group on an incident if you want to include that additional field.
  6. Repeat for any other fields, then click Save.

Glean indexes added fields as custom fields. You can't use this editor to replace native title or body mappings or change native permissions. Fields marked Default remain locked.

To stop including an additional field, remove it from Fields and mappings and save. This doesn't remove the field from ServiceNow. To restore the native object's configuration, select Reset to defaults from its three-dot menu. Resetting preserves whether crawling is enabled or turned off.

Add a custom object​

Review the table's fields before you save: Glean crawls custom-object fields by default, including fields without an explicit mapping. Exclude content you don't want indexed in Advanced → Red-listed fields.

  1. In Objects, click Add object.
  2. Select an available custom table and click Continue.
  3. In Access, select Crawl and index to include the object's records in Glean's index.
  4. In Fields and mappings, review the inferred mappings. Keep the required IDENTITY mapping for sys_id and select exactly one TITLE field. If Glean can't infer a title, click Add field, select a suitable field, and set Role to TITLE.
  5. In Permissions, click Create permission configuration, then Add permission rule. Configure access before indexing.
  6. In Advanced, review field exclusions, record filters, and the result-link template.
  7. Click Save and crawl.

If Access also shows Live search, that option searches ServiceNow in real time rather than storing records in Glean's index. This guide covers Crawl and index. Keep the two settings separate when deciding whether to index a table.

To change an existing custom object, open its three-dot menu, select Edit, update the relevant tabs, and click Save.

Map custom-object fields​

Glean fills in the mappings it can infer from the ServiceNow schema. Review these mappings in Fields and mappings. If Glean can't infer a title field, select one and assign the TITLE role before saving.

Use Fields and mappings to assign a field a specific purpose, not to select every field to crawl. Removing an optional mapping doesn't exclude the field from indexing. Use Red-listed fields for exclusions.

The editor offers these roles when the field's type supports them:

RolePurpose or requirement
IDENTITYIdentifies the record. The required sys_id mapping is locked.
TITLESupplies the result title. Exactly one field must have this role.
BODYSupplies the document body.
STATUSSupplies the record status.
CREATED, UPDATEDUse ServiceNow date-time fields. Glean locks an inferred sys_updated_on mapping.
CREATED_BY, UPDATED_BY, OWNERUse fields that reference the ServiceNow sys_user table.
CUSTOM_FIELDIncludes the field without assigning it another role. Unmapped fields also use this behavior.

Glean offers each role other than CUSTOM_FIELD for one field at a time.

Exclude custom-object fields​

Glean includes unmapped fields as custom fields. Use Advanced → Red-listed fields to exclude them from indexing. Removing a mapping alone doesn't exclude a field, and exclusions don't change the underlying ServiceNow table.

Required fields and fields with an explicit mapping don't appear in the exclusion selector. To exclude an optional mapped field, first remove its mapping in Fields and mappings, then select it under Red-listed fields.

Excluding a field from indexed content doesn't replace permissions configuration. Glean can still read fields it needs to resolve access.

Filter custom-object records​

In Advanced, click Add filter, then select a field, operator, and value. For example, use the active field with = and true to select active records when that field exists on the table.

Use separate filter rows rather than pasting a ServiceNow encoded query. Glean rejects values containing ^ or javascript:.

Supported operators are =, !=, <, >, <=, >=, IN, NOT IN, LIKE, STARTSWITH, ENDSWITH, ISEMPTY, and ISNOTEMPTY. Leave the value empty for ISEMPTY and ISNOTEMPTY.

Date fields support comparison and empty-value operators, not text or list operators. Enter dates as YYYY-MM-DD and date-time values as YYYY-MM-DD HH:mm:ss.

Leave View URL template empty to use Glean's computed record link. To use a different destination, enter a template in Advanced. For example:

{instanceUrl}/nav_to.do?uri={objectType}.do?sys_id={field.sys_id}

The template can reference the ServiceNow instance URL, the object type, and configured fields using the {field.field_name} format. Use field-qualified placeholders such as {field.sys_id}, not {sys_id}.

Templates must resolve to an absolute HTTP or HTTPS URL. Field placeholders can't reference excluded or permissioned fields and can't appear in the URL's scheme or authority, including its host and port.

Delete a custom object​

Deleting a custom object removes its saved configuration from Glean, not the table or records in ServiceNow. It doesn't immediately remove previously indexed results.

  1. In Objects, find the custom object.
  2. Open its three-dot menu and select Delete.
  3. Review the confirmation dialog, then click Delete object.

You can add the table again later and configure it again. To stop crawling while preserving its configuration, use Turn off crawl instead. Native objects have Reset to defaults, not Delete.

Verify the configuration​

Saving an object configuration doesn't immediately refresh search results. Allow the relevant content and identity crawls to finish, then check the following:

  • Search for a known record and confirm its title and expected fields.
  • Open the result and confirm that it links to the correct ServiceNow record.
  • Test with users who should and should not have access. Verify permissions after changes to permission rules or ServiceNow role membership.
  • Confirm that excluded fields and filtered-out records don't appear after the content refresh.

If a table or field is missing, check service-account access and ask Glean Support to verify schema discovery. If the editor reports that the schema or configuration changed while you were editing, close and reopen it before making your changes again.

For crawl status, scheduling, and removal timing, see Enable or turn off crawling for an object.