Thanks for your help Emmanuel. 
What's the better ? Perl script or mysql script ?

Tanguy 



Le 19 nov. 2010 à 18:38, "Emmanuel Lacour" <[email protected]> a écrit :

> On Fri, Nov 19, 2010 at 08:37:22AM +0000, [email protected] wrote:
>> Dear Community,
>> 
>> I currently setup script to create users from CSV file via CLI, and also add 
>> the users to and existing group.
>> 
>> The first part is working fine with command :
>> /opt/rt3/bin/rt create -t users add Name=$name EmailAddress=$email 
>> Password=$pass Privileged=$priv Organization=$orga RealName="\"$realname\""
>> 
>> But the command to add group member doesn't work :
>> /opt/rt3/bin/rt edit group/mygroup add Members=$name
>> 
>> I try the several syntax, but none works:
>> -       Members=$email
>> -       Members="realname <$email>"
>> -       Members=user/id
>> -       etc
>> 
>> The output says :
>> # members: Unkown field
>> # group xxxx updated
>> 
>> Can anyone help me, please ?
>> 
> 
> well reading this part of rt code, it doesn't seems you can update groups 
> members
> with rt cli (only display members) :(
> 
> I would do this using a custom script ;)
> 

Reply via email to