Previous Topic: Additional CA IdentityMinder Directory PropertiesNext Topic: Search across Objectclasses


Configure Sort Order

You can specify a sort attribute for each managed object, such as users, groups, or organizations. CA IdentityMinder uses this attribute to sort search results in custom business logic, which you create with the CA IdentityMinder APIs.

Note: The sort attribute does not affect the way search results are displayed in the User Console.

For example, when you specify the cn attribute for the user object, CA IdentityMinder sorts the results of a search for users alphabetically by the cn attribute.

Follow these steps:

  1. After the last IMSManagedObjectAttr element in the section for the managed object to which the sort order applies, add the following statements:
    <PropertyDict name="SORT_ORDER">
    	<Property name="ATTR">your_sort_attribute
    	</Property>
    </PropertyDict>
    
  2. Replace your_sort_attribute with the attribute on which CA IdentityMinder sorts the search results.

Note: Specify only one physical attribute. Do not specify a well-known attribute.

For example, assume that you have to sort user search results based on the value of the cn attribute. Add the following elements after the last IMSManagedObjectAttr element in the User Object section of the directory configuration file:

<!-- ******************** User Object ******************** -->
   <ImsManagedObject name="User" description="My Users"
      objectclass="top,person,organizationalperson,user"
      objecttype="USER">
   .
   .
   .
	<ImsManagedObjectAttr physicalname="departmentnumber"
		displayname="Department" description="Department"
		valuetype="String" required="true"
		multivalued="false" maxlength="0" />
	<PropertyDict name="SORT_ORDER">
		<Property name="ATTR">cn</Property>
	</PropertyDict>
  </ImsManagedObject>