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
https://docs.thinkboxsoftware.com/products/deadline/10.1/2_Scripting%20Reference/class_deadline_1_1_users_1_1_user_info.html

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

)

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

Privacy | Site terms | Cookie preferences