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.
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.
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).