×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On 07-Oct-2015 23:24 -0600, Booth Martin wrote:
Is there a way to programmatically retrieve a user's name from his
profile? That is, the "user description field" in the user profile.
Clarification is required on what specifically is meant by the
so-called "/user description field/ in the user profile." Also, the
topic is unrelated to RPG; even if the intention is eventually to use
RPG to obtain whatever\wherever is that info.
AFaIK there are any of the following as possibly what is of interest:
• a User Description in the User Enrollment feature
• a Text 'description' (TEXT) for the User Profile (USRPRF) object;
the same attribute available, for example, by either of Change Object
Description (CHGOBJD) or Change User Profile (CHGUSRPRF) commands with
the TEXT() parameter
• a User Description in the System Distribution Directory Entry
(DIRE) for any user enrolled in that feature.
• LDAP Directory Server database typically has the *cn (complete
name) field information.
I am unsure if the Work With User Enrollment (WRKUSRENR) terminology
"User Description" equates the Text (TEXT) object attribute of the
*USRPRF object, or perhaps instead with the System Distribution
Directory [i.e. the User Description (USRD) values specified-on and
added via, the Add Directory Entry (ADDDIRE) command], or perhaps is an
entirely separate entity.?
IMO the best way to retrieve a user's [full] name is from a private
database established specifically to track the users [and associated
information] on the partition. A parent file for a person-entity
establishes the [surrogate] key for the related files; e.g. a file with
"name" information for the person, a file with the USRPRF name(s) for, a
file with phone number(s), etc. I suppose some might use LDAP for all
that, but I might use the private database to maintain the data and use
that to manage the system [with constraints and triggers e.g. to create
and change User Profiles] and from which to populate the LDAP data.
As an Amazon Associate we earn from qualifying purchases.