Views:

Applies To:

GroupID 10 and above – Self-Service

Business Requirement:

We want to allow users to search for objects in the Self-Service portal using the sAMAccountName attribute. This attribute stores the logon name for user objects and group names for group objects.

We also want to apply the ‘contains' operator to the searches performed in the portal, so that users have greater convenience in searching for the required objects.

Solution:

GroupID provides the following solutions to  your requirements:

  • The Self-Service portal has two main search forms: Group search and Advanced search.
    To enable search on the sAMAccountName attribute, you have to add a field for this attribute on the required search form.

  • Change the default search operator settings for the portal from ‘begins with’ to ‘contains’.

Steps to add a field to a search form:

Let’s add the search field for sAMAccountName to the Advanced search form.

  1. In GroupID Management Console, select Self-Service > Portals > [Required portal] > Designs.

  2. Select an identity store to customize the portal design for it.

  3. Click the Search Forms tab.

  4. Select the search form, Default, in the Name list and click Edit.

  5. On the Edit Search Form dialog box, click Add in the Search Form area.

  6. Next, select sAMAccountName in the Field drop-down list, specify a suitable display name for it, and set its display type to Text.

  7. If you want to display the sAMAccountName field on the search results page in the portal as well, simply add this field to Search Results area. Remember to set its display type to Link.

  8. After adding the field to the required forms, click the Save button at the top of the Design window.

Following these steps, you can add any field to any search form and search results page in the Self-Service portal.

Steps to apply the ‘contains’ filter for searches

  1. In GroupID Management Console, select Self-Service > Portals > [Required portal] > Server.

  2. On the Settings tab, navigate to Use Contains Filter and set it to True.

    • With this setting set to False, searches are performed on the ‘starts with’ basis. For example, if a user enters ‘Sam’ in the Name box of the Advanced Search page, the portal searches the directory for all objects having first names starting with ‘Sam’.
    • With this setting set to True, the filter changes to ‘contains’, which returns objects with the string ‘Sam’ anywhere in the name.
  3. Click the Save button at the top.

  4. Now relaunch your portal and you will see the sAMAccountName field on the Advanced Search form. Try searching with sAMAccountName for the groups and this should work.

Note: These changes need to be done on all your GroupID portals separately.