How to impersonate another portal user?

Anyone pls,
how can i impersonate another portal user when i logged into the Portal with my userid. my requirement is i would have an iview with list of users(portal users). On click of the user i should open a new window which logs into the portal with that user credetials.
could anyone pls let me know how to do this?
anyone plss
Thanks,
Raghavendra
Message was edited by:
        Raghavendra Pothula
Message was edited by:
        Raghavendra Pothula

Thanks SK.
   I try and get currentUser with the codes you provide in Web Dynpro Application.
   But when I deploy the Web Dynpro Application into a portal and running it in a portal, I will get null all the time.
Here is the codes in Component Controller:
  public void wdDoInit()
    //@@begin wdDoInit()
    try
      IWDClientUser user = WDClientUser.getCurrentUser();
      String userName = user.getSAPUser().getUniqueName();
     catch(Exception ex)
       ex.printStackTrace();
       wdComponentAPI.getMessageManager().reportException(ex.toString(), false);
   //@@end
when running in portal , It always raise null Exception.

Similar Messages

  • How to change the portal user id 's assigned employee in ESS configuration

    Hello Gurus,
        I now have a question related to ESS configuration. I want to know how to change the Portal user's pernr assignment in the ECC 6.0 system. Somebody had actually assigned my portal user ID a PERNR in the ECC 6.0 system. But now, for test purposes, I want to change the PERNR assignment to something else for my portal user id.
    Could any of you please guide me in doing these steps?
    Points will definitely be awarded for helpful answers.
    Thanks gurus in advance for your help.
    ~~LB

    Hi Leena,
    You can create a new user name with the username and password assigned to it, with the transaction SU01.
    Ex : ESS_USER1
    Go to transaction code : PA30.
    Enter the pernr you want to assign to the user ESS_USER1 that you have created earlier.
    Enter infotype number : 105
    Now go ahead and click on the change button.
    And assign the user name as ESS_USER1.
    Then the pernr number will be assigned to the ESS_USER1 that you have created.
    You can check the same when you go to the HRUSER transaction code.
    Please let me know if you still have any issues on the same.
    Cheers.
    Sandeep

  • How to Restrict same portal user from other node

    Hi
    In my application, we charge customers for each portal user logins. But, i found that, they can share same user logins amongs number of people.
    I don't want to allow the same portal user login into the application if that user is already logged in and it's session is still active.
    Here is the Scenario :
    User A is logged in to the portal from terminal AA. Now, User A agin tries to logg in to the portal from terminal BB. I don't wnat to allow user A to log in from terminal BB bcuz user A has active session from terminal AA.
    Can anyone know how to implement this??
    thanks in advance.
    Srini

    Hi Srini!
    We have solved this problem with our own login portlet. Before the final login we've got to check (from the certain table) how many logins there are currently with that username.
    But there is a problem. If the user closes the browser without logoff, the session remains active. There is a cleanup job, which removes those session in some hours. Still it is not very elegant.
    Regards,
    Jari

  • How to check whether portal user exists or not using UM API.

    Hi Experts,
    Let us say i need to create an user account "PortalUser",i know how to create an user,setting first name,lastname,password for that.
    but here before creating the portal user, i need to check whether that user exists or not.If user already exists ,then i  need to skip the below for creating the user.
    IUserFactory userFact = UMFactory.getUserFactory();
    IGroupFactory groupFact = UMFactory.getGroupFactory();
    IRoleFactory roleFact = UMFactory.getRoleFactory();
    IUser tuser = userFact.getUserByLogonID("PortalUser");
    IUserMaint newUser = userFact.newUser("PortalUser");
    newUser.setFirstName("PortalUser");
    newUser.setLastName("Test");
    newUser.setEmail("PortalUser.Testatgmaildotcom");
    //Locale PortalLanguage = new Locale(Lang.toLowerCase(), "");
    Locale PortalLang=new Locale("en");
    newUser.setLocale(PortalLang);
    newUser.save();
    newUser.commit();
    IUserAccount userAcc = UMFactory.getUserAccountFactory().newUserAccount("PortalUser", newUser.getUniqueID());
    userAcc.setPassword("test1test$");
    userAcc.save();
    userAcc.commit();     
    Thanks in advance.
    Thanks
    Sony.

    Hi,
    Try this code,
    IUserFactory factory = UMFactory.getUserFactory();
    IUser user = factory.getUserByLogonID(userId);
    lastName = user.getLastName();
    firstName = user.getFirstName();
    refer this pdf,its very helpful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
    Regards,
    Sunaina Reddy T

  • How to link a Portal User ID in the Html code

    Hi,
    I have requirement where in I need to create a HTML page with a Input Parameter as Portal user ID.
    This HTML Page is included in a webpage created by Web Page Composer.
    Please guide me how i can catch Portal UserID PArameter in this HTML code ?
    OR
    Can I use EPCM Portal Eventing for the same ?
    Awaiting Reply !
    Thanks,
    Smita Thorat
    Edited by: smita thorat on Feb 8, 2010 5:09 PM

    Hi!
    The way you suggest should not be used.
    A CS user will be created as a normal OID user and will receive the CS attributes in a different subtree later during the provisioning.
    For creating CS users use oesuser and uniuser. Files provisioning will work in a different manner anyway.
    cu
    Andreas

  • How to get the portal user id into the web dynpro iview at runtime?

    Hi,
    Can any one let me know, How to display portal id and as well as backend SAP user id into Web Dynpro iview at runtime. I am using Adaptive RFC model in my web dynpro application.
    Raj.

    Raj:  check this thread. I think that will help you.
    Can i get Portal User's details in webdynpro??
    I had the same requirement and its works whit this solution.
    regards.

  • How to find out portal user from sso cookie ?

    Hi,
    I want to find out the portal user id from Portal30_sso cookie. It is required for security in my java servlet.
    Thanks
    Vikas

    First of all, you can't get anything from the portal30_sso cookie or the portal30 cookie or the SSO_ID cookie. These are cookies established for (1) The login server session; (2) The Portal session; (3) The login server single sign-on cookie - visible only to the login server.
    When you want to know who the current user is, you need to establish the context. If your servlet is standalone and not a partner application to the login server and it's not a portlet, etc., then what context does it have? What concept of users does it have? If you are really asking what Portal is currently logged on, that is still a loaded question. The user's browser could be accessing several portal's at the same time, each with a different identity. What I am getting at is that your servlet needs to somehow be associated with a particular portal before it can even think of asking this question.
    The ways to associate your servlet with a portal would be
    [list=1]
    [*]Make it a partner application
    [*]Make it a portlet
    [*]Make it an external application
    [list]
    Hope that helps.

  • How to access a Portal User Info from a J2EE application?

    Hi,
    I have deployed a j2ee application in portal and its running fine.
    from that application i need to assign some roles to some users.i have the user id.
    so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?
    plz help me
    regards,
    Visweswar

    Hi,
    Please check out this to get the portal user information from Java -
    WdClientUser class/Interface to aciehve this.
    Please check out these links on the same -
    WDClientUser.getClientUser IUser
    help needed
    Regards
    Lekha

  • How to prevent a portal user from using the BEx Analyzer ?

    Hi,
    we have different type of users : most users may use the portal as well
    as the analyzer ;
    we have one special user with extended authorizations : this user
    should use the portal , where he has a limited set of queries to run
    with hardcoded filters ==> this user should not be able to use the
    analyzer however, since he then would be able to call all other queries
    by using the find function ;
    how can we make sure this user cannot use the analyzer , using SAP
    authorizations ?
    best regards,
    Erwin Van Giel.

    Hi,
    if I remove the complete S_RFC authorization for the user then the BEx Analyzer cannot connect anymore to the BW system, but neither can the user run reports from the portal : it needs the S_RFC with 'SYST'.
    If I only remove the RRMX from the S_TCODE and from the S_RFC, it does not prevent the user from starting the BEx Analyzer and connecting to the BW system. It only stops the user if he would start the RRMX transaction from within an SAPGUI session.
    Perhaps there should be a value in the S_RFC that allows connections from the portal but not from the BEx Analyzer .... ?
    so not solved yet ....
    best regards,
    Erwin.

  • IBot - How to impersonate as multiple users

    Experts,
    Below is my requirement.
    I would like to run an iBot when ETL finishes loading the data. This iBot should seed the cache for say 5 users.I have 2 dashboards and multiple pages within a dashboard.
    I know by selecting the checkbox for seeding in Destination tab, I can seed the cache.
    How can i seed it for 5 users and for all my dashboards?
    parag

    HTH = hope this helps :-)
    The ibot will run 5 times on behalf of your users. Do you want to send a different dashboard to each user or something ? I was under the impression you want to send the same dashboard to each user?
    EDIT - Looking at your OP, you want to seed the cache, the ibots will do this. When the user comes to view the dashboard in OBIEE, the dashboard will fire all queries, if cache is available it will hit the cache automatically.
    My last comments where geared towards sending the dashboards as a content, ie PDF or similar, this isnt what you where asking so sorry for the confusion
    Regards
    Alastair

  • How can i get portal user creation date?

    Hi,
    In my web dynpro java application i must get user creation date.
    How can i get user creation date?
    Thanks.

    user.created()

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • Mapping between portal user and business partner

    Hello all,
    I would like to store data of portal users using a business partner in an ERP system. How to map a portal user to a business partner? My idea was to store the business partner ID in a field of the portal user. But there is no such field.
    Thanks for your help!
    Felix

    Hi Felix,
    user mapping involves creation of a system object and the corresponding system alias, and then assigning this system alias to the user( this is what is called user mapping in this context). and then you create a corresponding iView for the same and assign this iView to a role where the user is already having this role.
    This is the common steps for user mapping when connecting with external landscapes. I hope the partner mentioned is a specific type
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4361">Try this link</a>
    under this concentrate on the system object creation area.
    and I hope you have a particular role already assigned to your role.
    Cheers

  • SAP Portal user license

    Dear All!
    I am trying to dig for SAP's policy about SAP Portal user licensing... Is there any document or does anybody know how SAP deals with portal users' licensing?
    Moreover, is it legal to map multiple portal users against single backend (SAP ECC) user? If yes then is there any limit to it?
    I am waiting for the response.
    Regards,
    Muhammad Abdul Qawi

    Satish,
    I read your post regarding your check on EP - R3 License. I'd like to know more about your check.
    In our region, we hardly find any clear response on this issue.
    My scenarios is typical : Many User Account in EP UME (either local db or link to AD), and we have lots of custom Web Dynpro application using JCo destination to read as well as write data to R3.
    We're not sure how many R3 License we need for this scenario.  From your reply, "one license" were mentioned for "WRITE" data to R3. I'm not sure what the "one license" mean.
    Let's say we have 5 concurrent EP user having "WRITE" operation (via our web dynpro and then JCo, RFC) against R3. Do  you mean we need to buy 5 R3 license ? or just one R3 license for "service account" ?
    Hope you can shed some light
    Thanks

  • How to determine numebr of portal users?

    Hi experts,
    we are using sap portal for displaying contents from different application, and active directory is storage of user master data.
    my question is how can i find the number of users using SAP Portal ( login to sap portal ) ? i searched the users through portal user administrator  it gives me all users created in active directory that does not make sense because some user do not know about portal.
    another way i tried to run http://<server>:<port>/USMM this does not work either.
    so how can i determine number of users using SAP Portal?
    your any help would be highly appreciated?
    Regards;
    kumar

    Hi Arvind,
    If you want to find out the number of users which are actually defined in Portal, you can go to the User Administration tab and in Identity Management, Search Criteria as USER and select All DATA SOURCES, put a * in the column adjacent to it and click on GO.
    It may give you tht the size limit is exceeded but it also gives you the total number of search elements.
    I hope this helps.
    Regards,
    Sneha.

Maybe you are looking for