Configuring Profiles directory search options
Configure directory search options to specify the fields that can be used when performing a search.
Before you begin
To edit configuration files, you must use the wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.
About this task
Procedure
To configure directory search options for Profiles, complete
the following steps.
- Start the wsadmin client from the following
directory of the system on which you installed the Deployment Manager:
where app_server_root is the WebSphere® Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.app_server_root\profiles\dm_profile_root\bin
You must start the client from this directory or subsequent commands that you enter do not execute correctly.
- Start the Profiles Jython script interpreter.
- Open the profiles-config.xml file in a text editor.
- Locate the
<searchLayout>
section and edit it to specify which fields display on the Search the Directory form.- To enable a predefined attribute for search, include the following line for each attribute that
you want to
include:
For a complete list of the predefined attributes that can be included in the Search the Directory form, see Profiles directory search attributes.<attribute showLabel="true">attribute_name</attribute>
- To enable a custom extension attribute for search, include the
following line for each custom attribute that you want to include:
Use the optional hideOnSearchUIForm attribute to control whether the custom field displays in the Search the Directory form. When this property is set to true, the custom field does not display in the user interface. For example:<extensionAttribute showLabel="true" labelKey="label.custom.attribute_id" bundleIdRef="bundle_name" extensionIdRef="attribute_id"/>
In the preceding example, the<extensionAttribute showLabel="false" hideOnSearchUIForm="true" extensionIdRef="schoolName" />
schoolName
custom extension attribute is hidden in the directory search user interface, but because the attribute is enabled for search, the following URL can be used to find the result:http://yourco.com/profiles/html/advancedSearch.do?keyword=&displayName=&preferredFirstName=Joseph&preferredLastName=&profileTags=&jobResp=&experience=&background=&organizationTitle=&workLocation%24city=&workLocation%24state=&countryDisplayValue=&email=&telephoneNumber=&extattr%24schoolName=yourschool&lang=en_us
Note: For more information about adding custom extension attributes to Profiles, see Adding custom extension attributes for Profiles. For information about how to add custom strings in Profiles, see Adding custom strings for widgets and other specified scenarios.
<searchLayout> <attribute showLabel="true">displayName</attribute> <attribute showLabel="false">preferredFirstName</attribute> <attribute showLabel="false">preferredLastName</attribute> <attribute showLabel="true">profileTags</attribute> <attribute showLabel="true">jobResp</attribute> <attribute showLabel="false">departmentTitle</attribute> <attribute showLabel="false">experience</attribute> <attribute showLabel="false">background</attribute> <attribute showLabel="true">organizationTitle</attribute> <attribute showLabel="false">workLocation.city</attribute> <attribute showLabel="false">workLocation.state</attribute> <attribute showLabel="false">countryDisplayValue</attribute> <attribute showLabel="false">email</attribute> <attribute showLabel="false">telephoneNumber</attribute> <extensionAttribute showLabel="true" labelKey="label.custom.schoolName" bundleIdRef="education" extensionIdRef="schoolName"/> </searchLayout>
- To enable a predefined attribute for search, include the following line for each attribute that
you want to
include: