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

Impersonate Users feature of MWS

  • 1.  Impersonate Users feature of MWS

    Posted Wed April 23, 2014 01:55 AM

    Hi All,

    Has anyone ever used the “Impersonate Users” feature of MWS? Where can I read more about that? What are the capabilities of this feature and how to implement this?

    This is for MWS 9.5

    Thanks and Regards,
    Ninad Patil


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 2.  RE: Impersonate Users feature of MWS

    Posted Thu April 24, 2014 12:17 PM

    Hi Ninad,

    I’ve a piece of code for it but no information why we use it. I got it from some where and it might help you.

    IContext context context = ContextFactory.acquireContext(true);
    IDirUser user = (IDirUser) dirSystemPolicy.lookupPrincipalByID(context, userID, IDirSystem.TYPE_USER);
    IThingID userThingID = user.getDirectoryPrincipalID();
    boolean currentUser = context.isAdminSession();
    context.impersonate(userThingID, currentIsAdmin );


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS