Mapping external users and groups to ServiceNow AI Platform users
AI Search external user mappings enable you to configure externally defined user and group aliases for ServiceNow AI Platform users. AI Search uses these aliased security principals to apply content security filters that control user access to search results indexed from external documents.
You can use mapped external user and group names when defining access permissions for external documents that you ingest for indexing via the External Content Ingestion API.
External content security user mapping overview
To configure user mappings for external content security, you must perform the following steps:
- Create one or more user mapping tables. For instructions on this procedure, see Create a user mapping table.
Link a user mapping table to each of your external content indexed sources. For details on this task, see Link a user mapping table to an external content indexed source.
Note: If no mapping is found for the current ServiceNow AI Platform user, AI Search only allows the user to view search results for external documents that have the everyone permission set to true. This can occur if no user mapping table is linked to a search result's indexed source, or if no mapping for the current ServiceNow AI Platform user exists in the indexed source's linked user mapping table.
Import user mappings into your user mapping tables with the AI Search External User Mapping API.
Users with the ais_high_security_admin role can review history records for import operations to verify that user mappings imported correctly. For instructions on this procedure, see View history records for user mapping import operations.
Parent Topic:External content security for AI Search
External user mapping security principal types
AI Search user mapping aliases can include externally defined group and user security principals.
| Mapped security principal type | Description |
|---|---|
| Externally defined group | The ServiceNow AI Platform® user specified in the user mapping inherits group-level access permissions for all aliased external groups. For example, if you define external group report-users as an alias for ServiceNow AI Platform user beth.anglin@example.com, AI Search allows beth.anglin@example.com to view indexed search results for external documents that include read access permission for report-users. |
| Externally defined user | The ServiceNow AI Platform user specified in the user mapping inherits user-level access permissions for all aliased external users. For example, if you define external user ad\abel-tuter as an alias for ServiceNow AI Platform user abel.tuter@example.com, AI Search allows abel.tuter@example.com to view indexed search results for external documents that include read access permission for ad\abel-tuter. |
Create a user mapping table
Define a table to store externally defined user and group aliases for ServiceNow AI Platform® users.
Before you begin
The External Content for AI Search plugin (com.glide.ais.external_content) must be activated in your instance.
Role required: ais_admin
About this task
User mapping tables store user mappings for use with external documents that have access permissions. Each mapping specifies externally defined user and group aliases for an individual ServiceNow AI Platform user. AI Search uses the mappings linked to an external document's indexed source to determine whether a ServiceNow AI Platform user can view the indexed record for the document.
All user mapping tables extend the AI Search External Search User Mapping Base [ais_external_search_user_mapping] table.
Procedure
Navigate to All > AI Search > External Content > Create User Mapping.
Enter a name for your user mapping table.
Select Submit.
The dictionary form for your new user mapping table appears.
What to do next
Import user mappings into your new user mapping table. For an overview of this process, see Importing user mappings. For details on the relevant API endpoint, see AI Search External User Mapping API.
Link a user mapping table to an external content indexed source
Specify the user mapping table you want AI Search to use for external documents ingested through an indexed source.
Before you begin
The External Content for AI Search plugin (com.glide.ais.external_content) must be activated in your instance.
The source table for the indexed source must be an external content schema table.
Role required: ais_admin
About this task
A user mapping table linked to an indexed source defines external user and group aliases for ServiceNow AI Platform® users. AI Search uses these aliases to determine a user's effective access permissions when their search matches a record from the indexed source.
A user mapping table can be linked to any number of indexed sources.
Note: If no mapping is found for the current ServiceNow AI Platform user, AI Search only allows the user to view search results for external documents that have the everyone permission set to true. This can occur if no user mapping table is linked to a search result's indexed source, or if no mapping for the current ServiceNow AI Platform user exists in the indexed source's linked user mapping table.
Procedure
Navigate to All > AI Search > AI Search Index > Indexed Sources.
Open the indexed source record that you want to link a user mapping to.
In the AI Search External Search User Mapping Table Data Source Relationships related list, create a new relationship record for the user mapping table that you want to link to the indexed source:
Select New.
On the AI Search External Search User Mapping Table Data Source Relationship form, fill in the fields.
Select Submit.
The user mapping table's name appears in the related list.
Importing user mappings
You can use the AI Search External User Mapping API to import mappings between ServiceNow AI Platform® users and externally defined users and groups.
To define a user mapping for import, you need the following information:
- The email address that uniquely identifies a ServiceNow AI Platform user in the User [sys_user] table.
- The list of externally defined groups that you want to alias to the ServiceNow AI Platform user. This list can be empty.
- The list of externally defined users that you want to alias to the ServiceNow AI Platform user. This list can be empty.
For more information on importing user mappings, see AI Search External User Mapping API.
View history records for user mapping import operations
Review the results for your user mapping import operations, including data, log messages, and any errors. Use this procedure to verify that your user mappings are imported correctly.
Before you begin
Role required: ais_admin, ais_high_security_admin, and import_transformer.
About this task
AI Search creates an import set for each batch of user mappings that you import via the AI Search External User Mapping API. The transform histories for these import sets provide insight into the results of your user mapping import operations.
Procedure
Elevate to the ais_high_security_admin role:
- Perform the appropriate action for your version of the UI:
| UI version | Action | |
|---|---|---|
| Next Experience UI | In the banner frame, select the icon for your account to open the user menu, then select Elevate role. Image omitted: elevate-role-polaris-ui.png Core UIUser menu with Elevate role action highlighted in Next Experience UI.</p></td></tr><tr><td> | In the banner frame, select your name to open the user menu, then select Elevate Roles. Image omitted: adv-ais-tools-user-menu-before.png User menu with Elevate Roles action highlighted in Core UI.</td></tr></tbody> Image omitted: elevate-role-dialog-polaris-ui-ais.png Dialog box displaying privileged roles in Next Experience UI. Image omitted: icon-elevated-role-ui16.png . Image omitted: elevated-polaris-ui.png User menu showing elevated role indicator in Next Experience UI.
|