The provided code reports on users and their associated identities. The SAS General Servers account is a group identity, so if you want to report on logins and their associated identity (Person or Group) you would want to change the merge DATA step accordingly. Maybe:
data work.metadata_logins (drop=keyid) ;
merge
work.logins (keep=keyid UserID)
work.group_info (keep=id name DisplayName desc in=user rename=(id=keyid desc=description))
work.person (keep=keyid name DisplayName description in=user)
;
by keyid;
if userid ne "";
run;
--
Greg Wootton | Principal Systems Technical Support Engineer