How to return a value in script


I am working on version 8.1.3. I am calling stored procedures through connector and used the sample template provided in synchronization project to write a script. I am able to create the user in the target but unable to return the UserID generated in target. I see that record is getting added in List of CommitRecord but not able to understand how we can return a value. Can someone please help?