Enable viewing of search results for the current and another selected user
Enable the search as functionality when you want the ability to view search results common to the current user and another user that you specify.
Before you begin
Role required: admin
About this task
For example, an HR administrator may have some confidential information. A user might have partial access to the information. The Search as functionality applies security access to display results that are common to both the logged in or current user and the user referenced in the Search as field. The search result for the other user may have fewer entries than what that current user can actually view.
Note: No search result is displayed for Predictive Intelligence Similarity additional resources. Record producers only support searching for the current user.
Procedure
Navigate to All > Contextual Search > Table Configuration.
Edit a table configuration record.
In the Search as section, fill in the fields.
Search as configuration fields.
| Field | Description |
|---|---|
| Enable search as | Option to enable the Search as functionality. |
| Search as field | Field defining the other user to search as. This field appears only when you select Enable search as. |
| Results message | Message to display with search results when searching as a different user. This field appears only when you select Enable search as. |
| Condition | Condition restricting when the search result of the user mentioned in the Search as field should appear. This field appears only when you select Enable search as.Note: Both Condition and Script must evaluate to true for search results to appear. An empty condition or script also evaluates to true. |
| Script | A condition script, enabling administrators to implement more powerful conditions. For example, to restrict access to users that are members of a group, use gs.getUser().isMemberOf("<group name>"). This field appears only when you select Enable search as.Note: Both Condition and Script must evaluate to true for search results to appear. An empty condition or script also evaluates to true. |
Result
The My Results tab displays search results for the currently logged-in user. The <user-name> Results tab displays search results for the user referenced in the Search as field.
Parent Topic:Managing contextual search