cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch a user list from a user group

cj
New Contributor II

Hi All,

Is there a way we can find out list of users in a user group on a running Kx?

Things I have tried are:

ug:`userGroupName;
.px.upd.getUsers[ug]
.px.upd.getMailLists[ug]

 

Appreciate any help.

1 ACCEPTED SOLUTION

davidcrossey
Moderator Moderator
Moderator

Hi cj,

Try this one:

select member by ugroup from .pm.getUserGroup[]

davidcrossey_0-1661845533885.png

Regards,

David

 

View solution in original post

2 REPLIES 2

davidcrossey
Moderator Moderator
Moderator

Hi cj,

Try this one:

select member by ugroup from .pm.getUserGroup[]

davidcrossey_0-1661845533885.png

Regards,

David

 

cj
New Contributor II

Thanks David, meanwhile the following worked as well. 🙂 Are .pm entities there in the Kx Documentation somewhere?

.px.pm.getUser each (.px.upd.getUsers[`ALL])`name;