AWS Thinkbox Discussion Forums

cant add users via script

It fails with a false positive error:

    vUserInfos = RepositoryUtils.GetUserInfos(['laszlo.sebo'], True)
    RepositoryUtils.SaveUserInfo(vUserInfos[0])

2016-05-12 16:49:35: PythonNetException: Exception : User name contains spaces or invalid characters
2016-05-12 16:49:35: at Deadline.Scripting.RepositoryUtils.SaveUserInfo(IUserInfo userInfo)
2016-05-12 16:49:35: File “\inferno2\deadline\repository8\scripts\General\TestUsers.py”, line 12, in main
2016-05-12 16:49:35: RepositoryUtils.SaveUserInfo(oUserInfo)

(trying to migrate the users from 7->8… )

Weird, I’ll have a look at this, should be fixable in a patch release… You were presumably able to create the user through other means, though, it’s just the script function that is broken?

EDIT: Nvm, I just noticed you were re-saving an existing user in your code. You were obviously able to create it elsewhere since that’s the case :slight_smile:

This is through the regular built in .net functions, this doesnt work at all. THe restful api was my fallback, where you have to save it twice :slight_smile: So that resolved my immediate user migration issue.

Privacy | Site terms | Cookie preferences