setuid and setgid accept string as a parameter.

Both process.setuid and process.setgid can accept either a numerical ID or a username\groupname string.