[rt-users] Add group membership via CLI

Emmanuel Lacour elacour at easter-eggs.com
Fri Nov 19 12:38:16 EST 2010


On Fri, Nov 19, 2010 at 08:37:22AM +0000, tanguy.lagroy at bt.com 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 ;)




More information about the rt-users mailing list