sAMAccountName Generator

Has anyone been able to generate a sAMAccountName using the usernameGenerator transform?

I found a different topic where is was mentioned that this could only be used for the account ID for a source, and for AD that is the distinguishedName.

Check the solution by lisa.ivy.

We have a need to generate the DN and the sAMAccountName, with different patters, and using the uniqueCounter. Can we use the usernameGenerator transform for both attributes?

Thanks,
Chris