Hello jktieman, we don't have that functionality built into the API today that will directly rebuild a user's folders. I'm not sure the extent of the corruption but you can try to backup your user's folders and see if exporting them to CSV then importing them from that CSV fixes the problem for you. Since I don't know the extent of the corruption I'm just tossing out an idea to see if this might help.
Larry Duran
Software Developer
SmarterTools Inc.
www.smartertools.com