Java api: User mapping information

Hi all,
is it possible using Java Api to read User mapping information.
I need user name my portal user mapped to.

found an answer: Re: Getting User ID and Password Mapped to the Users

Similar Messages

  • Java API for Error Handling

    There are some common error tables storing error IDs information ( IDs like error type, project id, interface id, message id etc.) in Operational Database (is not on source or target system) which we have to update using java API. We need to call java API (java code) whenever error occurs. We have to provide all the IDs to this function and then API will take care of DB updating. We can call java API in mapping program by creating user-defined java function, this will trap all the errors which are in source file as well as in mapping and mapping lookup. Query is:
    A-      A- Do we have any other place after the mapping to call this java API and trap the errors through it?
    B-      Can we call Java API using BPM and pass error IDs to it.

    Hi Anand,
    You Have to write Module For that(if you wanna call Java API after Mapping)at the receiver.
    To write Module Here is a link which will help you in.....
    ==>http://help.sap.com/saphelp_nw04s/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm
    ==>http://help.sap.com/saphelp_nw04s/helpdata/en/e4/6019419efeef6fe10000000a1550b0/frameset.htm
    ==>http://help.sap.com/saphelp_nw04s/helpdata/en/f4/0a1640a991c742e10000000a1550b0/frameset.htm
    Enjoy Coding....:)
    Regards,
    Sundararamaprasad.

  • JAVA API Personalization iview / User Mapping

    I am using the following code snippet to get the
    User Mapping from the "Personalization" iview
    IUserMappingData iumd = iums.getMappingData (systemalias, iuser);
    Is there a similiar SET method?
    TIA -hs

    hI
    When you use umdata.enrich(map), soon after that, use SET property in the Hash Map and finally call umdata.storeLogonData(Map). This map should contain updated credentials.
    Hope this works.
    Pls reward points if useful
    Murali.

  • How do I create a user, in my context in OID using the Java API

    How do I create a user, with subschema, in my context in OID using the JAVA API
    I need to be able to create new users in my OID, I was doing it in our old iPlant Directory, but I don't seem to see the same methods in the Oracle LDAP API. I figured out how to get and modify the attributes of a user, but I can't seem to figure out how to add a new one.

    Try this code , modify it accordingly
    ------- cut here -------
    import oracle.ldap.util.*;
    import oracle.ldap.util.jndi.*;
    import javax.naming.NamingException;
    import javax.naming.directory.*;
    import java.io.*;
    import java.util.*;
    public class NewUser
    final static String ldapServerName = "yourLdapServer";
    final static String ldapServerPort = "4032";
    final static String rootdn = "cn=orcladmin";
    final static String rootpass = "welcome1";
    public static void main(String argv[]) throws NamingException
    // Create the connection to the ldap server
    InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx(ldapServerName,
    ldapServerPort,
    rootdn,
    rootpass);
    // Create the subscriber object using the default subscriber
    Subscriber mysub = null;
    String [] mystr = null;
    try {
    RootOracleContext roc = new RootOracleContext(ctx);
    mysub = roc.getSubscriber(ctx, Util.IDTYPE_DN, "o=dec", mystr);
    catch (UtilException e) {
    e.printStackTrace();
    // Create ModPropertySet with user information
    ModPropertySet mps = new ModPropertySet();
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"cn", "Steve.Harvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"sn", "Harvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"uid", "SHarvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"givenname", "Steve");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"mail", "[email protected]");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"userpassword", "welcome1");
    // Create the user
    User newUser = null;
    try {
    newUser = mysub.createUser(ctx, mps, true);
    System.out.println("New User DN: " + newUser.getDN(ctx));
    catch (UtilException e) {
    e.printStacktrace();
    ------- end cut --------
    Enjoy.
    Suhail

  • User mapping when installing JAVA addin for ABAP

    Hi,
    I have installd SAP ABAP on a domain.
    As the ABAP went fine and successfully gets installed.
    When I am installing JAVA addon for ABAP it is throwing an error lke the users are not mapped.
    So can any one guide me where actually I should map the SAP users in a domain.
    Prashanth

    Your question is very vague, please post the full error.
    As this is a java add-in it should user ABAP as datasource so no user mapping should be required.
    User mapping is used where java and backend system use different datasources and the naming conventions are different...
    Theres not enough information here to give you an objective answer.
    Regards
    Juan

  • Java API for adding new User in OID

    I am search documentation for sample code to add a new User to the OID via Java API, I could not find any. Is it not possible to do so? if it is, can someone point me to the right location.
    Thanks

       * This method adds employee details into directory
       * @param emp Employee details to be added
       * @param password Password for the employee
       * @exception GroceryAppException if  directory operation fails
      public void addEmployee(Employee emp, String password)
        throws GroceryAppException {
        Map attrs = new HashMap();
        List  objclass = new ArrayList();
        // Object classes that the employee must use
        objclass.add("top");
        objclass.add("inetOrgPerson");
        objclass.add("orcluserv2");
        // create other attributes and their values
        // Add all attributes that you need to set
        attrs.put("uid",emp.getEmpId());
        attrs.put("cn",emp.getFirstName());
        attrs.put("sn",emp.getLastName());
        attrs.put("postaladdress",emp.getAddress());
        attrs.put("mail",emp.getEmail());
        try {
          // create the Directory Entry with the specified attributes
          dirManager.addDirectoryEntry("cn="+emp.getFirstName()+"cn=Users,dc=oracle,dc=com"
                                             , objclass, attrs);
        } catch (NamingException namingEx) { // for Directory errors
          throw new GroceryAppException("Error while adding employee entry to directory :" +
                                      namingEx.getMessage());
      }And the Directory Manager
       * Creates an entry in Directory with the specified attributes and objectclass,
       * with the specified Distingushed Name.
       * @param dn Distinguished name of the entry to be created
       * @param objCls Object classes that the entry must use
       * @param map Attribute,value mappings of the entry
       * @exception NamingException if adding entry fails
       public void addDirectoryEntry(String dn, List objCls, Map map)
         throws NamingException {
          // Create attribute list, ignore case of attribute names
          Attributes attrs = new BasicAttributes(true);
          if( !objCls.isEmpty()) {
            Attribute objclass = new BasicAttribute("objectclass");
            // Iterate thriough the collection and add the object classes to the attribute
            Iterator objclsIter = objCls.iterator();
            while(objclsIter.hasNext()) {
              // Add the object classes
              objclass.add(objclsIter.next());
            // Add the object class attribute to list
            attrs.put(objclass);
          // Iterate through other attributes and add to attributes list
          Iterator attrsIter = map.entrySet().iterator();
          while( attrsIter.hasNext() ) {
            Map.Entry attr = (Map.Entry)attrsIter.next();
            attrs.put(new BasicAttribute((String)attr.getKey(),attr.getValue()));
          // add the directory entry to the directory with the attributes
          dirctx.createSubcontext(dn, attrs);
       }

  • How can I create a new User with the Java API like OIDDAS do?

    Hello,
    I'm currently working on an BPEL based process. And i need to create an OCS user. So far I can create an user in the OID. But I cant find any documentation about given this user an email account,calendar and content function etc.
    Did anybody know if there are some OIDDAS Webservices? Or did anybody know how to do this using the Java APIs?

    You are asking about a Database User I hope.
    You can look into the Oracle 8i Documentation and find various privillages listed.
    In particular, you may find:
    Chapter 27 Privileges, Roles, and Security Policies
    an intresting chapter.
    You may want to do this with the various tools included with 8i - including the
    Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
    Or use SQL*Plus. To create a
    user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
    Create user John identified by Smith;
    Grant CONNECT to John;
    Grant SELECT ANY TABLE to John;
    commit;
    There is much more you can do
    depending on your needs.
    Please read the documentation.
    -John
    null

  • Error while creating user id from MDM JAVA API in 7.1 SP7

    Hi,
    We are trying to create user id in MDM 7.1 SP7 using JAVA API in SAP Portal. When trying to create user id, we are getting below error. If you have any solution please let us know.
    com.sap.mdm.commands.CommandException: MDM repository data is out-of-date or is locked by another MDM Server. Refresh the data and try the operation again. If the error persists, contact the system administrator
    Thanks,
    Vinit Pugaliya

    URGENT** How to change  OIM user password from outside OIM

  • User defined function in java for message mapping

    I wrote the following user defined function in java for message mapping and mapped vendor with this. The aim of this function is to write a error file at defined path when i send empty Vendor value from File to RFC-Function module BAPI_PO_CREATE. The "err.txt" error file is not written when i execute in TEST but the value "ERROR" is returned to destination Vendor Field.
    public String  validation(String a, Container container) {
    //write your code here
    if (a.equals("")) {
    try {
    String source = "Vendor cannot be empty";
    char buffer[] = new char[source.length()];
    source.getChars(0, source.length(), buffer, 0);
    for (int i = 0; i < buffer.length; i +=2)
       f0.write(buffer<i>);
    f0.close();
    FileWriter f1 =  new FileWriter("/10.10.0.55/sapmnt/trans/edixiin/err.txt");
    f1.write(buffer);
    f1.close();
    catch (IOException e) {}
    return "ERROR";

    Hi Senthil,
    Check these things :
    1) Whether you have permission to create a file in that directory.
    2) try giving this 
    10.10.0.55
    sapmnt
    trans
    edixiin
    err.txt
    3) Also check for permissions.
    Hope this will help you.
    Regards
    Suraj

  • Question about Logon ticket with user mapping at BI-JAVA environment

    We're implementing BI 7.0 including BI Java and SAP EP for end user
    access.
    I have two question about SSO method when we're using BI Java.
    I know we can simply configure SSO logon ticket with BI-Java(EP
    included) and BI-ABAP through BI template installer and we already
    succeeded in that case.
    But the problem is we want to change it to user mapping SSO method for
    some our internal reason.
    After we configure user mapping SSO, we've got SSO failed error when we
    call BI-Java stuff like BEx Web Application iView.
    After many testing implemented, we found SSO Logon ticket with user
    mapping (using SAP reference system). It seems working now.
    But our question is "Is it no problem when we use SSO logon ticket with
    user mapping?" Is there any restriction or issue?
    One more question is we can ONLY use user base mapping when reference
    system used. How can we assign BI-ABAP users to EP Group?

    Using an SAP Reference system is allright. But if the reason u r going for this is because of different usernames in EP and BI, why dont you go for user mapping.
    Anyways, on restriction of reference syetms is that you can have ONLY ONE reference system defined in portal. In you case you can only have the BI system defined.
    Hope this helps!!

  • Give me information on user mapping in EP

    Hi
    we are using Ep7.0 with backend ECC 6.0 and we have LDAP server for SSO.
    Here my question is:
            Is there any automated process for mapping EP user with backend user.
    Note: our ume datasource is config as LDAP readonly and DB.
    rgds..

    Update User Mapping ID api
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/retrieve%2buser%2bmapping%2bdata
    reward points if helpful

  • SAML AS JAVA user mapping. Can table VUSREXTID On AS ABAP be leveraged?

    The documentation on the SAML AS java user mapping refers to Mapping SAML Principals to SAP J2EE Engine User IDs - User Authentication and Single Sign-On - SAP Library custom development. In my case the users are managed on the AS ABAP system. Can I leverage the ABAP mapping mechanism using VUSREXTID, similar to the user mapping on the ABAP AS Mapping SAML Principals to AS ABAP User IDs - User Authentication and Single Sign-On - SAP Library without building my own java program?

    We have developed a login module which is working with Kerberos auth, not x.509 auth, but still solves a very similar problem to the problem you are describing. As you know, when SNC is used to logon to ABAP stack, the SNC name of the user is mapped onto a SAP user via entries in the USRACL table. Our mapping login module takes the authenticated user principal name from the shared state and uses this to lookup the entry in USRACL table on ABAP stack, and from this it will know which SAP user  to use, and can update shared state with this info so that CreateTicketLoginModule will created an SSO2 ticekt for the mapped SAP user id.
    This means that mapping of users externally authetnicated identity onto SAP user/client can be managed in one place, e.g in ABAP stack using USRACL table entires and su01 t-code etc.
    I know it is not exactly what you wanted, since you are looking to use x.509 certifiates instead of Kerberos authentication, but I thought it was worth sharing so that you know the concept has already been implemeneted many times. Many of our customers use this login module when they have our product, for the same reasons that you have stated.
    Thanks,
    Tim

  • Seeburger Splitter:Fatal error in user mapping . java.lang.StackOverflowErr

    Hello,
    I have created a mapping E2X_SLSRPT_UN_D96A as we didnt have the standard mapping(See_)  from Seeburger
    In my scenario when I give hardcoded mapping name ,it works fine,so I assume mapping is correctly created and deployed.
    But I need to use it with splitter,and in doing so,I am getting this error:
    Message initiation failed: Adapter call failed. Reason: --- Conversion of synchronous request from module chain ended with errors ---Error: [Error:ID=not set;LEVEL=1] Fatal error in user mapping ... java.lang.StackOverflowError at com.seeburger.jucon.dochandler.SegmentDescription.semanticCheck(SegmentDescription.java:444) at com.seeburger.jucon.dochandler.SegmentDescription.semanticCheck(SegmentDescription.java:460) at com.seeburger.jucon.dochandler.SegmentDescription.semanticCheck(SegmentDescription.java:460) at com.seeburger.jucon.dochandler.InhouseDocReader.doSyntaxCheck(InhouseDocReader.java:1555) at com.seeburger.jucon.dochandler.InhouseDocReader.moveNext(InhouseDocReader.java:1852) at com.seeburger.jucon.dochandler.EdifactDocReader.moveNext(EdifactDocReader.java:457) at com.seeburger.jucon.dochandler.InhouseDocReader.moveNext(InhouseDocReader.java:1859) at com.seeburger.jucon.dochandler.EdifactDocReader.moveNext
    My splitter configuration is :
    classifier     classifierMappingID     Abc
    classifier     destSourceMsg     MainDocument
    classifier     showInAuditLog     true
    bic     destSourceMsg     MainDocument
    bic     destTargetMsg     MainDocument
    bic     logAttID                          ConverterLog
    bic     mappingName     AUTO
    bic     saveSourceMsg     ORIGINAL_EDI
    bic     split     true
    splitter     mode     ASYNC
    splitter     transaction     MESSAGE
    The same configuration works fine with ORDERS message.
    Also,I have configured same mapping name in Splitter section in Seeburger Workbench.
    Has anyone encountered this error before?
    Kindly let me know
    Thanks.
    Regards,
    Shweta

    Hi,
        I understand that you need to use Custom mapping for your EDIFACT Message...
    Then did you created the generic mapping with Clasasifier ID...i.e ABC_edifact... (By default it will be See_Edifact)
    so you need to create the generic mapping by Name provided in classifier ID of settings then....
    need to create the child mapping in such a way that it calls the same (developed one...)
    in default cases See_Edifact frames the child mapping name to be called based on the messages received ...
    similarly your generic mapping need to call your child mapping....
    Hope this clears you
    Rajesh

  • Oracle BPM Java API - getting informations about process activities

    Hi
    I have a problem with Oracle BPM Java API, can someone help me?
    I have a business process project deployed in Oracle SOA Suite and I need to get some informations of my process programatically via Java API.
    Basically I need to get informations about process activities and the corresponding human tasks referenced by these activities.
    I'm able to get the HumanTasks of my Business Catalog and also to get the Activities of my Process, but the relationship between them is null.
    I did some tests, below a piece of code of my test:
    IBPMServiceClient bpmServiceClient = BPMConnectionUtil.getBPMServiceClient();
    IProcessMetadataService processMetadataService = bpmServiceClient.getProcessMetadataService();
    IProcessModelService processModelService = bpmServiceClient.getProcessModelService();
    List<ProcessMetadataSummary> processMetadataSummaryList =
    processMetadataService.listProcessMetadataSummary(BPMConnectionUtil.getBPMContext(), "processNameOrId to find", "processName", "ASC");
    if (processMetadataSummaryList == null || processMetadataSummaryList.size() == 0)
    return;
    ProcessMetadataSummary processMetadataSummary = null;
    for (ProcessMetadataSummary summary: processMetadataSummaryList) {
    if (summary.isIsDefaultRevision()) {
    processMetadataSummary = summary;
    break;
    if (processMetadataSummary == null)
    processMetadataSummary = processMetadataSummaryList.get(0);
    IProcessModelPackage pack = processModelService.getProcessModel(BPMConnectionUtil.getBPMContext(), processMetadataSummary.getCompositeDN(), processMetadataSummary.getProcessName());
    oracle.bpm.project.model.processes.Process process = pack.getProcessModel();
    Sequence<UserTask> activities = process.getActivities(UserTask.class);
    for (UserTask activity: activities) {
    System.out.println("Human Task: " +activity.getHumanTask()); // <<<<<<<<<<<<<<<<<<<<---------------------------- here is the problem. the human task is null, but my activity have a task associated
    There is another way to get this information?
    Thank's

    Hi
    I have a problem with Oracle BPM Java API, can someone help me?
    I have a business process project deployed in Oracle SOA Suite and I need to get some informations of my process programatically via Java API.
    Basically I need to get informations about process activities and the corresponding human tasks referenced by these activities.
    I'm able to get the HumanTasks of my Business Catalog and also to get the Activities of my Process, but the relationship between them is null.
    I did some tests, below a piece of code of my test:
    IBPMServiceClient bpmServiceClient = BPMConnectionUtil.getBPMServiceClient();
    IProcessMetadataService processMetadataService = bpmServiceClient.getProcessMetadataService();
    IProcessModelService processModelService = bpmServiceClient.getProcessModelService();
    List<ProcessMetadataSummary> processMetadataSummaryList =
    processMetadataService.listProcessMetadataSummary(BPMConnectionUtil.getBPMContext(), "processNameOrId to find", "processName", "ASC");
    if (processMetadataSummaryList == null || processMetadataSummaryList.size() == 0)
    return;
    ProcessMetadataSummary processMetadataSummary = null;
    for (ProcessMetadataSummary summary: processMetadataSummaryList) {
    if (summary.isIsDefaultRevision()) {
    processMetadataSummary = summary;
    break;
    if (processMetadataSummary == null)
    processMetadataSummary = processMetadataSummaryList.get(0);
    IProcessModelPackage pack = processModelService.getProcessModel(BPMConnectionUtil.getBPMContext(), processMetadataSummary.getCompositeDN(), processMetadataSummary.getProcessName());
    oracle.bpm.project.model.processes.Process process = pack.getProcessModel();
    Sequence<UserTask> activities = process.getActivities(UserTask.class);
    for (UserTask activity: activities) {
    System.out.println("Human Task: " +activity.getHumanTask()); // <<<<<<<<<<<<<<<<<<<<---------------------------- here is the problem. the human task is null, but my activity have a task associated
    There is another way to get this information?
    Thank's

  • Update User Mapping ID api

    Hi,
    Does anyone know if there is an api to update user mapping ids for users in EP6.0 Portal Database.
    I know it can be done in the standard User Import with the inclusion of $usermapping$ but wanted to know of there is a way to do it in a bespoke program to help automate the addition of portal users who will require access to the connected R/3 system (of which there will be many).
    Thanks for any help you can offer,
    Steve.

    Hi Steve
    Try the following code.
    IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
    IUserMappingService iumser = (IUserMappingService) PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
    IUserMappingData iumdata = iumser.getMappingData("System Alias", req.getUser());
    Map map = new HashMap();
    try {
        iumdata.enrich(map);
    } catch (Exception e) {}
    String userid = (String)map.get ("user");
    String password = (String)map.get ("mappedpassword");
    The following code stores usermapping info.
    IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
    IUserMappingService umapser = (IUserMappingService)
    PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
    IUser userid = req.getUser();
    IUserMappingData iumdata = umapser.getMappingData ("System Alias", userid);
    Map map = new HashMap ();
    try {
         map.put("user","userid");
             map.put("mappedpassword","password");
            iumdata.storeLogonData(map);
    } catch (Exception e) {response.write(e.getMessage());}
    Hope this helps.
    Regards,
    Yoga

Maybe you are looking for

  • Gif file in pse 6.

    I have 3 .gif files that I cannot open in pse 6.  I'm getting the following message: "could not complete your request because the file-format module cannot parse the file."  Any suggestions?

  • 5450 Test Panel error

    Hello, I am trying to execute a vi using PXIe 1065 with NI 5673 RFSG and NI 5663 RFSA. When I try to test NI 5450, using MAX, it passes self test but upon clicking the Test Panel and running it using start, the sine wave isn't running and I donot get

  • Adobe Illustrator CS5 workspace panels arnt appearing at all on page?

    Hi there, I'm having trouble with my Illustrator CS5, when I open the program nothing appears (apart from when I open a new document then just the document paper appears) no windows, no panels, nothing. I have tried clicking on windows>Application Fr

  • Where can I find the thunderbird inbox mails on my MAC ?

    Hi there, I cannot find the path to get to the emails that are stored in the inbox mail on my MAC. I have tried the "find" option and spotlight. Don't work Where are the messages that I see in the "in" folder stored ???? Thanks in advance BP

  • E-Sword for Blackberry Curve 9300

    Do anyone know if you can download E-Sword on a Blackberry Curve 9300. Or maybe help me with a web link.