Inside Activate
System
AD cache Status Incorrect After Moving Users Outside Activate
4 min
this document explains why adcache status can become incorrect when user objects are moved outside of activate, and how to ensure adcache remains aligned with active directory overview adcache reflects the last known state of objects as synchronised by activate when user or object changes are made directly in active directory, outside of activate managed processes, adcache may become inaccurate if the relevant objects are not included in a scheduled role synchronisation cause role synchronisation is typically run on a scheduled basis, commonly nightly if a user is moved to a different organisational unit or otherwise modified outside of activate, and the role responsible for syncing that user does not include the new location, the adcache entry for that user will not be updated this most commonly occurs when only a limited role (for example, a specific business unit or department) is included in the nightly synchronisation, rather than the full domain scope resolution to maintain adcache accuracy for all users, ensure that a role covering the entire domain is included in a scheduled background task a common approach is to use the built in system role that represents the entire domain and include it in an existing nightly process, such as licence statistics or another background task implementation example the following example demonstrates how the entire domain role can be explicitly synchronised as part of a background task role entiredomain = provisioningsystem organisation roles\["system roles/entire domain"] as role; if (entiredomain != null) { entiredomain syncadmembers( role syncflags changesonly | role syncflags existingusers | role syncflags logresults ); logtrace("system roles/entiredomain sync complete {time}"); } operational notes ensure that the entire domain role is included in a regularly scheduled background task synchronisation runs at a frequency appropriate for your environment logging is enabled to confirm successful execution and to assist with troubleshooting regular full domain synchronisation helps prevent discrepancies between active directory and adcache when changes occur outside of activate