@usernameslist for Different User

Does someone have a trick to get @usernameslist to work on a user other than the current user?

I need to determine all the groups/roles that a name belongs to.

I can use aclentry.isroleenabled to get the roles, but how can I get the groups?

Thanks, Eric

Subject: @usernameslist for Different User

Use ‘QueryAcessRole’ Method of NotesDatabase Class.This will returns the roles of a person, group, or server in a database.

Subject: RE: @usernameslist for Different User

The QueryAccessRole method is better for determining roles, thank you for that tip.

However, the most important thing I need is to determine the groups a user belongs to. I need something like @usernameslist, but it has to run on any name I specify, not just the current user.