> -----Original Message----- > From: Tom Lahti [mailto:[email protected]] > Sent: Friday, February 27, 2009 3:32 PM > To: Gary Greene > Cc: Joel Schuweiler; [email protected] > Subject: Re: [rt-users] REST add/update a user > > > Can we please get some example code for this up somewhere > so those of > > us that have automated employee fulfillment workflows can integrate > > this fairly easily? At the moment, I've a JSP utility that > is used to > > create new users, and I'd like pre-instantiate the RT user for them > > (While we do use the ExternalAuth LDAP integration, the user still > > needs to login once for IT to add them to the proper queue...) > > Well, I can tell you off the top of my head that what you > POST is XML, but the contents of that XML are not what you > would think. You want one parameter called "content" that > contains the RFC822 formatted form as I described, and that's > all that's in the XML. You can see a lot of the fields you > can set in the form by doing "/opt/rt/bin/rt edit -t user <someuser>" > > If you want actual code, that'll take longer and I don't have > time today. > And any code I show you will be in ruby. >
Ruby works for me, since I can translate that to Perl or Java fairly easily (learned ruby while surrounded by Pythonistas when I was working for Google....) -- Gary L. Greene, Jr. IT Operations Minerva Networks, Inc. Tel: (408) 240-1239 Cell: (650) 704-6633 _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
