The agent reports "Failed to modify the group membership of the user. There is no such object on the server."


Symptoms

When attempting to add a newly created Active Directory user account to a group, you receive the error "Failed to modify the group membership of the user. There is no such object on the server."



Cause

When you create a user account in a directory with more than one domain controller, the user account may not have replicated to all the domain controllers before an attempt is made to add that user to a group.



Resolution

Within the user account creation task, go to the Directory tab and select Replicate Active Directory or Ensure Active Directory Replication.  You can also change Commit Immediately to True if you want every Active Directory setting change to be made immediately.