Can't create folder in volume I mounted programatically

I mounted a volume using:

mount volume “smb://userName:passWord@ipofServer/path”

i then run:

make new folder at “serverName” with properties {name:folderName}

I get an error saying I don’t have “enough privileges”

when I mount the volume manually using the same credentials this line works just fine.

ideas?

CH