When the account goes back to active you are generating a new unique ID and sAMMAccount name. It sounds like you need to add a check to see if the generated sAMMAacount name already exists on the identity and if so don’t regenerate it. On our side the sAMMAccount name is the same as the HR employee ID so it’s going to be the same if the user returns.