[rt-users] Batch user add to group

Kevin Falcone falcone at bestpractical.com
Mon Aug 20 10:44:04 EDT 2012


On Wed, Aug 15, 2012 at 12:12:21PM +0100, Giuseppe Sollazzo wrote:
> Hi there,
> I was wondering if there's any command line utility or API call that I
> can use to add users to a group in bulk, in RT4.
> 
> I have something like
> user1 at domain
> user2 at domain
> user3 at domain
> user4 at domain
> 
> they are already on the system, but unprivileged.
> 
> I want to make them privileged and add to a group.

There is no existing command line utility, but it's mostly a matter of
a small perl script to load the user, calling SetPrivileged on it and
then calling AddMember on the relevant group object.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120820/b84514d6/attachment.sig>


More information about the rt-users mailing list