...
You can create even more complicated auto-attachment rules combining workflow rules with formula fields or even updating them via API from external system. Almost any complicated object classification logic is possible using workflows and formulas.
Object Re-attachment After Application Tier Client Name Change
If Application Tier Client Name is changed, objects will be re-attached in 1 hour. However, there may be a delay in jobs if a customer didn't log in for some time.