KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums KX Solutions Fetch a user list from a user group

  • Fetch a user list from a user group

    Posted by cj on August 30, 2022 at 12:00 am

    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.

    cj replied 1 week, 5 days ago 2 Members · 2 Replies
  • 2 Replies
  • davidcrossey

    Member
    August 30, 2022 at 12:00 am

    Hi cj,

    Try this one:

    select member by ugroup from .pm.getUserGroup[]

     

    Regards,

    David

     

  • cj

    Member
    August 30, 2022 at 12:00 am

    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;

     

Log in to reply.