+

Search Tips   |   Advanced Search

Excluding inactive users from search results

By default, when users search for people in Connections, inactive user profiles are excluded from the search results. We can run a command to change the deployment settings so that search results related to inactive users are automatically included in search results.

When you set the user profiles of employees who have left your organization to inactive, by default, those profiles are not listed in search results. Additionally, inactive users do not display in the person type-ahead on the Advanced Search page. End users can still filter search results to display inactive profiles by selecting All People from the Show menu on the Search Results page when the Profiles filter is selected.

If we want inactive profiles to display in search results by default, we can run SearchCellConfig to update the value of the includeInactiveUsers property in search-config.xml to true. If true, the person type ahead on the Advanced Search page includes inactive users.

For more information about the user life cycle in Connections, see Managing users.

To include or exclude inactive users from search results.

  1. Start wsadmin...

  2. Initialize the Search environment, and start the Search script interpreter:

      execfile("searchAdmin.py")

    If successful

      Search Administration initialized

  3. Check out search-config.xml :

    SearchCellConfig.checkOutConfig("working_dir", "cellName")

    where:

    • working_dir is the temporary directory to check out the cell level configuration file. This directory must exist. Use forward slashes to separate directories, even with Windows.

      AIX , and Linux only: The directory must grant write permissions or the command will not run successfully.

    • cellName is the name of the cell the Search node belongs to. Required. Case-sensitive. To determine:

      print AdminControl.getCell()

    For example:

      SearchCellConfig.checkOutConfig("c:/search_temp", "SearchServerNode01Cell")

  4. Runs:

    SearchCellConfig.includeInactiveProfilesSearchResults()

    Specifies the documents corresponding to inactive user profiles are included in search results. In a default installation of Connections, inactive user profiles are automatically excluded from search results.

    SearchCellConfig.excludeInactiveProfilesSearchResults()

    Specifies the documents corresponding to inactive user profiles are excluded from search results. In a default installation of Connections, inactive user profiles are automatically excluded from search results.

  5. Check in search-config.xml:

    SearchCellConfig.checkInConfig()

  6. To exit the wsadmin client, type exit at the prompt.


Parent topic:
Manage the Search application


Related:

Manage users