Omit data with exclusion rules & queries

You can control what Google Cloud Directory Sync (GCDS) reviews and updates by using exclusion rules or queries. 

Differences between exclusion rules & queries

  • With exclusion rules, you can omit LDAP directory data, Google Account data, or both from a sync. For example, if you use an exclusion rule to omit a user, profile, or group, GCDS behaves as if they don't exist during a sync.
  • To prevent GCDS from deleting or suspending users, you can use a query with Google Account data to exclude Google users from a sync. If you have lots of users, a query is more efficient than GCDS loading all users and then using an exclusion rule to filter the ones that you don’t want to sync.

When to use rules & queries

Type of data Consider using... If that's not possible, use...
Entities in your LDAP directory server that you don’t want in your Google Account LDAP search rule LDAP exclusion rule
Users in your Google Account that you don’t want suspended or deleted Users search query If the query syntax doesn't support the type of filter you need, use a Google exclusion rule.
Entities other than users (such as groups, organizational units, or calendar resources) that should remain in your Google Account but don't exist in your LDAP directory server Google exclusion rule  

Add a Google users search query

  1. In Configuration Manager, click Google Domain Configurationand thenExclusion Rules.
  2. For Users Search Query, add the rule using the search guidelines in Search for users.

Using exclusion rules

Expand section  |  Collapse all & go to top

Examples of exclusion rules

Expand section  |  Collapse all & go to top

Related topics


Google, Google Workspace, 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?
2757408262778584291
true
Search Help Center
true
true
true
true
true
73010
false
false
false
false
Search
Clear search
Close search
Main menu