IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Getting User Groups/Roles

  • 1.  Getting User Groups/Roles

    Posted Mon March 16, 2009 11:48 PM

    I tried searching a bit on the forums but could not find anything relevant.:o
    I want to get a list of MWS groups that a user belongs to. Similarly for Roles.
    Is there an API function that can do it?:confused:
    I could see that I can get the user name by using getFacesContext().getExternalContext().getRemoteUser();


    #webMethods
    #webMethods-BPMS
    #BPM


  • 2.  RE: Getting User Groups/Roles

    Posted Sat March 28, 2009 12:20 AM

    You can use the following:
    UserModel user = new UserModel();
    List groups = user.getGroupMembership();
    Iterator it = groups.iterator();
    String group = null;

    while (it.hasNext()) {
    group = ((GroupModel)it.next()).getPrincipalID();


    }

    For roles, use user.getRoleMembership();

    Hope this help


    #webMethods-BPMS
    #BPM
    #webMethods


  • 3.  RE: Getting User Groups/Roles

    Posted Fri May 20, 2016 11:36 AM

    very helpful.
    Many thanks !


    #BPM
    #webMethods
    #webMethods-BPMS