CLI and User Custom Fields

I am trying to find a way to set User Custom Fields using the CLI. I have
tried:

rt edit -t users UniqueID set CF-MyCFName=“something”

rt edit -t users UniqueID set CF.{MyCFName}=“something”

When I use these commands I get a “Unknown field” error.

Is is possible to edit user Custom Fields from the CLI?

Thanks,
Jeff Triplett
Systems Administrator
Miami University, Oxford, Ohio
College of Engineering & Computing
109B Benton Hall
513-529-0791

I am trying to find a way to set User Custom Fields using the CLI. I have tried:
rt edit -t users UniqueID set CF-MyCFName=“something”
rt edit -t users UniqueID set CF.{MyCFName}=“something”
When I use these commands I get a “Unknown field” error.
Is is possible to edit user Custom Fields from the CLI?

The RT CLI is primarily for editing Tickets, not users, queues,
rights, etc. I’d be surprised if updating User CFs worked.

-kevin

What is the best way to programmatically add and edit users in RT?

Thanks,
JeffOn Fri, Sep 13, 2013 at 9:54 AM, Kevin Falcone falcone@bestpractical.comwrote:

On Fri, Sep 13, 2013 at 09:30:30AM -0400, Triplett, Jeff wrote:

I am trying to find a way to set User Custom Fields using the CLI. I
have tried:
rt edit -t users UniqueID set CF-MyCFName=“something”
rt edit -t users UniqueID set CF.{MyCFName}=“something”
When I use these commands I get a “Unknown field” error.
Is is possible to edit user Custom Fields from the CLI?

The RT CLI is primarily for editing Tickets, not users, queues,
rights, etc. I’d be surprised if updating User CFs worked.

-kevin


RT Training in New York, October 8th and 9th:
http://bestpractical.com/training

Thanks,
Jeff Triplett
Systems Administrator
Miami University, Oxford, Ohio
College of Engineering & Computing
109B Benton Hall
513-529-0791

What is the best way to programmatically add and edit users in RT?

The Perl API which you can read more about on

If you’re just importing users, rather than adding them occasionally,
use something like RT-Extension-LDAPImport instead (or script
something based on it).

-kevin