Changing (system info)

Our company is migrating off active directory and after we unbind and migrate user accounts, I’d like to change each user’s long name. Currently, the long names are: Lastname, Firstname (my company domain yadda, yadda) I can fetch all the information using (system info), but I can’t come up with a good way of changing the long name afterwards.

This should be simple, but I’ve put in 16 hours today and nothing’s making sense to me right now.

Here’s the part that works:

set {long user name:fullName} to (system info)

set newFull to {word 2 of fullName & " " & word 1 of fullName}

Thanks!