[rt-users] Add group membership via CLI

tanguy.lagroy at bt.com tanguy.lagroy at bt.com
Fri Nov 19 03:37:22 EST 2010


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 ?

--
Tanguy LAGROY
Département NSS/IPOC
BT Services
Email : tanguy.lagroy at bt.com
Tel : +33 (0)1 78 41 15 39



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101119/574e56d3/attachment.htm>


More information about the rt-users mailing list