[rt-users] Batching queue rights | Automatisierte Queue Rechte vergabe

Lars Kellogg-Stedman lars at oddbit.com
Mon Nov 17 09:36:42 EST 2008

> i must share many rights over Configure > Queues > Queue name > GroupRights.
> I have 26 Queues with 28 Groups. I don't want to click on every queue an
> delegate them rights. Is there a way of batching rights to Queues? Perhaps
> with the CLI?

That would be nice, wouldn't it?

I took a stab at solving this myself, and the solution I came up with
worked but was really ugly -- it required adding a new table to the RT
database, and then some Perl code that interacts with the db directly
rather than through the RT API.  The way it works:

- Create a new table called "acl_profiles".

- Populate this table with tuples of the form (profile name, right name)

- Write code that, given the name of an acl profile, looks up all the
rights associated with this name in acl_profiles and applies them to
the named queue.  This worked by updating the ACL table directly.

It is unstable, untested, only available from the command line, and
I'm not using it anymore.  If you'd like I can send you what I've got,
but unless you're a developer it will probably not meet your needs.
The fact that it modifies the database directly and not through the RT
API means that it's almost guaranteed to do the wrong thing at some

I see Torsten's response came in while I was writing this, and that
probably points to cleaner solutions.

Lars Kellogg-Stedman <lars at oddbit.com>

More information about the rt-users mailing list