Active Directory objects can be used to create security groups based on user identity, and identity-based firewall rules.
You can register an entire AD (Active Directory) domain to be used by IDFW (Identity Firewall), or you can synchronize a subset of a large domain. Once a domain is registered, NSX synchronizes all AD data required by IDFW. To enable selective sync, update the domain payload using PUT/api//v1/directory/domains/<domain-id>/ update selective_sync_settings, with enabled set to true, and provide a list of OrgUnits to synchronize. New OrgUnits are synchronized, and deleted OrgUnits are deleted from NSX. For more information, see the NSX API Guide
If you use the API to manually end a full sync after it is has begun, the sync stats will not be updated correctly.