The deadlinecommand CLI has a bunch of options to get and set Users and UserGroups. For example,
C:\Program Files\Thinkbox\Deadline10\bin>deadlinecommand -NewUserGroups Winners
Create new User Group(s): Winners
C:\Program Files\Thinkbox\Deadline10\bin>deadlinecommand -SetUser somebody somebody@someemail.com somepc true false Winners
Created user 'somebody'.
Here is the -Help output of the SetUser command:
SetUser
Modifies or creates the user.
[User Name] The user name
[Email] Their email address
[Machine Name] Their machine name
[Notify By Email] If they want email notifications (true/false)
[Notify By Popup] If they want popup notifications (true/false)
[User Group] Optional. The user group (or list of groups
separated by commas) to add the user to. By
default, the user is already part of the
Everyone group.
I put it into a batchscript and am using it to read in TSV from a spreadsheet
@echo off
set "File=C:\temp\test.tsv"
set /a count=0
SETLOCAL enabledelayedexpansion
for /F "tokens=* delims=" %%a in ('Type "%File%"') do (
Set /a count+=1
Set "output[!count!]=%%a"
)
For /L %%i in (1,1,%Count%) Do (
Call :Action "!output[%%i]!"
)
Exit
::*******************************************************
:Action
echo IMPORTING THIS USER : %1
start /d "C:\Program Files\Thinkbox\Deadline10\bin\" deadlinecommand.exe -SetUser "%1"
exit /b
::*******************************************************
At the moment it doesn’t pull all the users in first time round, I just run the script a few times and it gets everyone, will do something similar to remove users too