When Registration Services searches for a user, it displays a set of attributes in the results. For example, when an administrator searches for a user, Registration Services displays the user’ ID, name, phone number and email address by default. You can specify which attributes are displayed.
The JSP page that determines which attributes are displayed in the search results is table_profile_manage.jsp. The section of table_profile_manage.jsp that contains the appropriate code appears after the following comments:
//**** Construct search filter and search results attributes //**** based on the search object (org, user or group) //******************************************************
Note: Registration Services enables you to search for users. Modifying search results settings for organizations and groups in table_profile_manage.jsp will not affect Registration Services search pages.
To customize the displayed attributes, modify the identifiers that are specified in statements that resemble the following:
searchResultFieldIds.addElement( (String)("USER_ID"));
In this statement:
Note: The attribute identifier should match an identifier in user.properties.
The following section of the code determines which user attributes are displayed in the search results:
else if( searchObject.equalsIgnoreCase("USER") )
{
searchResultFieldIds.addElement( (String)("USER_ID"));
searchResultFieldIds.addElement(
(String)("COMMONNAME_ID"));
searchResultFieldIds.addElement(
(String)("PHONE_ID"));
searchResultFieldIds.addElement(
(String)("EMAIL_ID"));
showOrgPath=false;
}
In the sample above, showOrgPath does not correspond to an attribute in the object properties files for users. If showOrgPath is set equal to true, Registration Services displays the user’s DN in the search results.
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |