how do I change the default save destination(My Documents path) programmatically?

Hello,

I would like to change paths for users where the path depends on User name. How can we change MyDocuments path programmatically
What is the configuration file to change the paths

Thanks in advance.