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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Getting User Groups/Roles

    Posted 03/16/09 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 03/28/09 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 05/20/16 11:36 AM

    very helpful.
    Many thanks !


    #BPM
    #webMethods
    #webMethods-BPMS