RT::Cl...::User(3pm)
π RT::Client::REST::User π
okay so bestie, we're doing the RT::Client::REST::User page from the User Contributed Perl Documentation, and it's giving "your little handle on a whole human bean in RT." let's GO π¦
β¨ VERSION β¨
version 0.73 β yes ma'am, that's the one.
πΈ SYNOPSIS πΈ
my $rt = RT::Client::REST->new(server => $ENV{RTSERVER});
my $user = RT::Client::REST::User->new(
rt => $rt,
id => $id,
)->retrieve;
like, that's it. that's the whole vibe. make an RT::Client::REST pointing at your server, hand it to a User with an id, and retrieve that baby. π«Ά
π DESCRIPTION π
RT::Client::REST::User is built on top of RT::Client::REST::Object β it inherits the whole energy, no cap.
with this representation you can retrieve, edit, comment on, and create users in RT. four things. all the things you'd want, honestly.
β οΈ heads up bestie: RT currently does not let a REST client search users. so don't come for what RT won't give, okay? π
β ATTRIBUTES β
each one of these is a little field on the user object. let's run through them like it's a vibe check:
idβ for retrieval you can hand over either the numeric ID of the user or their username. but after retrieval? this attribute gets set to the numeric id, periodt. so don't expect your username back, she's been converted. πnameβ this is the username of the user.passwordβ the user's password. and omg, if you read it you'll just get a whole bunch of stars back. like, what did you expect?? no peeking, that's the rule. πprivilegedβ can the user have special rights? (yes/no, the classic main character question)disabledβ can this user access RT? (we love a good lockout mechanic π)email_addressβ e-mail address of the user, mapped toEmailAddress.real_nameβ real name of the user, mapped toRealName.gecosβ Gecos.commentsβ comments about this user.nicknameβ nickname of this user.langβ language for this user.organizationβ okay so the original page literally gives this one zero description. no words. a mystery. I'm not gonna make stuff up about it, so just know: it exists. πaddress_oneβ first line of the street address, mapped toAddress1.address_twoβ second line of the street address, mapped toAddress2.cityβ city segment of the user's address.zipβ ZIP or Postal code segment of the user's address.countryβ country segment of the user's address.home_phoneβ the user's home phone number, mapped toHomePhone.work_phoneβ the user's work phone number, mapped toWorkPhone.cell_phoneβ the user's cell phone number, mapped toMobilePhone.pagerβ the user's pager number, mapped toPagerPhone. yes, pager. we love a retro icon. πcontactinfoβ contact info (the Extra Info field).signatureβ signature for the user.
π§ DB METHODS π§
for the full deep dive on these, bestie, go read "DB METHODS" in the RT::Client::REST::Object documentation β that's where the real lore lives.
retrieveβ retrieve the RT user from the database.storeβ create or update the user.searchβ currently RT does not allow REST clients to search users. (again. she said no. π)
π₯ INTERNAL METHODS π₯
rt_typeβ returns'user'. that's it. that's the whole method. iconic behavior honestly. π
π SEE ALSO π
RT::Client::RESTRT::Client::REST::ObjectRT::Client::REST::SearchResult
π AUTHOR π
Dean Hamstead <dean@fragfest.com.au> β thank you for your service, king. π«‘
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2026, 2020 by Dmitri Tikhonov.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source. πΈ
and that's the whole page, bestie!! this was perl v5.40.1, dated 2026-04-21, and it's the RT::Cl...::User(3pm) manual page from the User Contributed Perl Documentation. mwah, go retrieve some users. πβ¨
π¦ where this page comes from
- ubuntu stonking: librt-client-rest-perl 1:0.73-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms