Views:

Applies To:

GroupID 9 and 10 - Automate

Business Case:

We would like to create a custom dynasty based on two attributes in GroupBy: 'manager' and 'location'. When the child dynasties are created, their display name populates with the distinguished name of the managers. We want to replace the distinguished name with the CN of the managers. 

Solution:

  1. Create a custom dynasty with the GroupBy attributes: manager and location (L).

  2. Open the properties of the parent dynasty and click the Options button on the GroupID tab.

  3. Click Edit Script.

  4. Uncomment line 7:

    args.FilterMethodName = "GroupByFilter"
  5. Add a script under line 12:

    Function GroupByFilter(Byval value as string) As string:

        Dim result as string = Split(value, ",")(0)
        result = Replace(result, "CN=", "")
        Return result
     
  6. Compile the script and save the changes.

  7. Now update the parent dynasty group. The child groups will get created with the CN populated in the display name. 

Reference:

  • GroupID Automate - User Guide