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

CDS API createPrincipal parameters

  • 1.  CDS API createPrincipal parameters

    Posted Wed February 01, 2017 05:50 AM

    Hello,

    I’m now working with CDS API and creating Users. Following the CDS documentation I used the createPrincipal(String directoryServiceID, int principalType,String name,Map properties) method. It worked and created an user in My webMethods, but only without all his additional attributes like: Middle Name, Address… which I passed to the method by – Map properties. When I use the same Map in the modifyPrincipal(String principalID, Map attributes) method, the user is modified and all his additional attributes are added.

    My Map<String, Object> looks like:
    map.put(“middle_name”, “middle_name” ));
    map.put(“address1”, “address1” ));
    map.put(“address2”, “address2” ));

    Can you please tell me why no additional properties are added to a new created user by calling the method createPrincipal but with calling modifyPrincipal yes? I searched for the answer in the CDS API documentation, but found nothing. Am I passing bad Map to createPrincipal?

    Thank you, Martin


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods