How to set a custom field on a user

I have created a new RT:User object and loaded it but I cannot see how
to set one of it’s custom fields. There seem to be methods for Tickets
but I cannot find any for Users.

I have created a new RT:User object and loaded it but I cannot see how
to set one of it’s custom fields. There seem to be methods for Tickets
but I cannot find any for Users.

Most customfields methods are common to all objects, and so in
RT::Record

see methods FirstCustomFieldValue to get a value and AddCustomFieldValue
to set a new value in lib/RT/Record.pm.