Primary Resource Group synchronization after Resource Group membership changes Issue A Primary Resource Group on an Employee Profile can appear stale when a user moves from one Resource Group to another. The complete OOB flow includes both invalidation of the old primary group and later population of the new primary group. This article documents the behavior, the components involved, and the validation steps. Symptoms A user initially belongs to PM India, and PM India is populated as the Primary Resource Group. The user is later added to PM Egypt and removed from PM India. An initial code review of the population job may suggest that an already populated Primary Resource Group will not be reevaluated because the population logic targets empty primary-attribute fields. The question is whether OOB functionality clears the former primary group and allows the new one to be populated. Facts Relevant OOB Components Business Rule: Sync group on resource profile When the membership for the group currently selected as Primary Resource Group is removed, this OOB flow triggers the event that clears the no-longer-valid Primary Resource Group. This behavior was validated in the reported scenario. Scheduled Job: Populate primary attributes for all resources Populates primary attributes on Employee Profiles when the field is empty and the resource has a single qualifying value. Related Link: Populate primary resource attributes Provides the corresponding on-demand population behavior for an Employee Profile. Script Include: ResourceProfileSyncServiceSNC Includes populatePrimaryAttrsForAllResources() used in the primary-attribute population flow. Script Include: ResourceProfileSNC Includes updateAttributeForMultipleResources(); investigation showed the population path restricts processing to empty primary-attribute fields. Expected OOB Flow 1. User starts as a member of Group A, with Group A set as the Primary Resource Group. 2. User is added to Group B. 3. User is removed from Group A. 4. The OOB Sync group on resource profile Business Rule/event flow clear Group A from the Primary Resource Group because the user is no longer a member of that group. 5. The Primary Resource Group is now empty. 6. When Populate primary attributes for all resources runs, the job evaluates the empty primary attribute. 7. If Group B is now the user's only qualifying Resource Group, Group B is populated as the Primary Resource Group. Release N/A Cause N/A Resolution No customization is required for the tested single-group transition scenario. The OOB Business Rule clears the invalid Primary Resource Group, and the OOB scheduled job subsequently repopulates the field when the resource meets the automatic-population criteria. Validation Procedure 1. Confirm the Employee Profile currently has a Primary Resource Group matching the user's existing Resource Group membership. 2. Add the user to the replacement Resource Group. 3. Remove the user from the group currently stored as Primary Resource Group. 4. Confirm that Primary Resource Group is cleared without manually editing the Employee Profile. 5. Run or wait for Populate primary attributes for all resources. 6. Confirm the new group is populated when it is the only qualifying Resource Group.