Sync groups and users to a Cloud Search identity source

Google Cloud Search uses an identity source to map user identities from third-party repositories. User identities can be stored in a Lightweight Directory Access Protocol (LDAP) server, such as Microsoft Active Directory. To synchronize Active Directory groups with your identity source, you can use Google Cloud Directory Sync (GCDS).

Before you begin

1. Turn on identity mapped groups

  1. At the command line, enter one of the following commands:
    • Linux: $ ./config-manager --enable-img (from the directory of the installation)
    • Microsoft Windows: > config-manager.exe --enable-img
  2. Open Configuration Manager.
  3. In the left panel, click General Settings.
  4. Check the Identity Mapped Groups checkbox.

    The Identity Mapped Groups option appears in the left panel.

2. Add groups to sync

  1. Open Configuration Manager.
  2. In the left panel, click Identity Mapped Groups.
  3. On the Search Rules tab, enter the following information:
    • Identity source ID (include the "identitysources/" part of the string)
    • Service account file path
  4. Click Add Search Rule and enter the following information:
    • Scope
    • Rule
    • Group attributes
  5. ​Click OK.

To test your search rule after you add it, click Test LDAP Query.

You can add more search rules and GDCS syncs them all. Learn more about how to add LDAP search rules to synchronize data.

To exclude groups that are returned from your search rules, click the Exclusion Rules tab. Learn how to use exclusion rules with GCDS.

3. Sync user identities to Cloud Search

  1. In the left panel, click Custom schemas.
  2. Click Add schema.
  3. For Schema name, enter the identity source ID. Do not include "identitysources" in the ID.
  4. For LDAP field name, enter the LDAP field that contains your external user identifier. This identifier is used in Cloud Search user principals with the form identitysources/source-id/users/user-identifier.
  5. For Google field name, enter the identity source ID appended with "_identifier". For example, if the identity source ID is 02b392ce3a23, enter 02b392ce3a23_identifier.
  6. For Google field type, select String and ensure that the field has only one value.
  7. Click OK.

4. Schedule your sync

  1. Open Configuration Manager.
  2. In the left panel, click Sync.

You can simulate a sync or save your settings. Learn how to automate your synchronization process.

Google, G Suite, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.
Was this helpful?
How can we improve it?