[rt-users] 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 -- RT Training in New York, October 8th and 9th: http://bestpractical.com/training
Re: [rt-users] CLI and User Custom Fields
What is the best way to programmatically add and edit users in RT? Thanks, Jeff On Fri, Sep 13, 2013 at 9:54 AM, Kevin Falcone falc...@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 -- RT Training in New York, October 8th and 9th: http://bestpractical.com/training
[rt-users] REST API - User Create Example
We are attempting to add RT into our Account Management System. We would like to use the REST API to add new and update user information. I have looked on http://requesttracker.wikia.com/wiki/REST but the documentation for User Create is a little sparse. What is the format that the REST API is expecting the User Create POST information in? I know that the REST documentation states variable named content, containing key: value line by line, like the response to /user/user-id If I could get an example that would be very helpful. I am using CURL to test. We are running RT 4.0.17 with ExternalAuth Plugin. -- Thanks, Jeff Triplett Systems Administrator Miami University, Oxford, Ohio College of Engineering Computing 109B Benton Hall 513-529-0791