security.getUserUID problem

Running into an odd problem. The following code adds a new user to the security system then we are retrieving the UserUid using
var UserUUID = security.getUserUID( UserName )
Everything works perfectly on the development computer and a bona fide UserUid is retrieved. But when the solution is on the server we get a UserUID that is a number like 237. Any thoughts on how to fix this? Thanks in advance. K
var UserName = forms.user_new.userid_calc
var Password = forms.user_new.usr_password
security.createUser( UserName, Password )
var Group = forms.user_new.usr_group
var UserUUID = security.getUserUID( UserName )
var UserUUID = security.getUserUID( UserName )
Everything works perfectly on the development computer and a bona fide UserUid is retrieved. But when the solution is on the server we get a UserUID that is a number like 237. Any thoughts on how to fix this? Thanks in advance. K
var UserName = forms.user_new.userid_calc
var Password = forms.user_new.usr_password
security.createUser( UserName, Password )
var Group = forms.user_new.usr_group
var UserUUID = security.getUserUID( UserName )