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
- In Configuration Manager, click Google Domain Configuration
Exclusion Rules.
- 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
- Set up your sync with Configuration Manager
- Use limits with GCDS
- Use LDAP search rules to synchronize data
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.