The Question is:
How do I extract the owner field in the sysuaf, given the username?
The Answer is :
The literal answer is via sys$getuai, but this particular SYSUAF field
is not particularly used by OpenVMS. System managers and various system
management packages can potentially (try to) use this field.
Tools to access fields within the SYSUAF are available from various
sources, if you are not particularly interested in writing a program
that calls sys$getuai.
Various examples of accessing the SYSUAF are available, including the
DWAUTH utility present on the OpenVMS Freeware.