have a look at 'nas_share_users' - Users manipulation functions.
I'm not sure if quota can be manipulated, but '--help' will tell you.