Any time I need user related metadata I normally take the quick and easy way and use the SAS supplied macro %MDUEXTR. It probably gives you more than you need but it saves an awful lot of coding. Do it as a first step in a EG project and the rest will be clever joining, filtering and reporting on the resulting tables. In code:
%MDUEXTR(LIBREF=WORK);
One of the resulting tables is EMAIL (all have obvious names) that can be joined with others, like PERSONS, for additional context.
Hope this helps,
- Jan.