User group memberships

(imported topic written by jeko1791)

Hi,

I’m having a hard time figuring out how to retrieve the group memberships of users. I can list all users of a group, list the names of the groups on a system, buy want to return which groups a user is a member of, similar to this:

q: (names of it, last logons of it, group memberships of it) of local users whose (not account disabled flag of it)

but there’s no “group memberships” inspector.

A related question, for domain users (and I know the performance hit to AD with querying domain users :)), is there any way to retrieve the Company field of the domain user account, for each user?

Thanks in advance.