Import/Assigns User(s) to User Group

Hi All,

Is there a way to import csv’s or similar files to get users into specific groups, or manage the user groups?

I know you can pull the information from Active Directory as shown here

But is there a way to add these users to a specific User Group

I couldn’t see anything on the script list either

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 somepc true false Winners
Created user 'somebody'.

Here is the -Help output of the SetUser command:

  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.
1 Like

Thanks Bobo, I can confirm that works

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]!"


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

I’m running this for almost 1800 users atm,

Which means I’m getting 1800 window pop-up!

Could there be a better way of managing large numbers of people such as this?

Use deadlinecommandbg.exe which does not pop up a window at all. It writes its output to two files which you must provide as arguments.

So something like

deadlinecommandbg -outputFiles c:\output.txt c:\exitcode.txt -SetUser "%1"

But you might want to make the output files variable too, so the multiple instances don’t try to write to the same files.

1 Like
Privacy | Site terms | Cookie preferences