How to force logout of portal user

Hi all,
we're currently facing trouble with portal users being "locked" in the portal. They are not locked in the ume sense, but when trying to logon they are only able to see navigation framework, and no content. The only content we're using in the portal is MSS/ESS, so the content we're trying to load is from R/3.
My idea is to manually log out the user in trubble from the portal.
Now; I can see see active http_sessions using the telnet Administrator session, but I can't find a way to force logout a user. Can anyone please tell me how to?
We're using Portal SP11, and ESS/MSS SP7.
I'm thankful for all input! Points will be handed out of course.
Kind regards,
Andreas

hi,
   Try this code.This might help you.
IPortalComponentRequest request=(IPortalComponentRequest) this.getRequest();
          IAuthentication Authen = UMFactory.getAuthenticator();
HttpServletRequest req = request.getServletRequest();
HttpServletResponse res = request.getServletResponse(true);
//logoff user from Portal
Authen.forceLogoffUser(req, res,"");
The third argument is a string which is the redirection URL.
Regards,
Srinath

Similar Messages

  • Force logout a managed user?

    Hi all
    I'm running an OD server with 10 clients connected (all 10.4.6, clients and server). Users, groups and computers are managed, and simultaneous login is disabled for all users.
    My question: How can I (forcibly) log a user out? You know, as you can disconnect a user who is connected to an AFP share...
    Right now I was trying to log in on one of the managed clients, and it keeps telling me that I'm already logged in on another one, but I'm definitely not. Something must be hanging somewhere, but where?
    TIA, Tina

    Yes, and the user is nowhere to be found. Nowhere on
    the OD server and nowhere on the fileserver where his
    home resides. I know about the disconnect option for
    AFP/filesharing connections, but what about users
    logged in to a client by authenticating against an OD
    server?
    Tina
    If you're running Remote Destop you can logout clients from the "Manage" menu with "Log Out Current User...".
    You can also ssh to the client and issue this command:
    sudo ps -aux | grep loginwindow
    it will return the PID for the loginwindow.app process.
    Then issue the command:
    sudo kill -9 xxx
    where xxx is the PID of the loginwindow.app process.

  • 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.

  • How to Force Logoff from Portal in Custom Application

    Hi All,
    We have developed a Custom Component for the user to change password in Portal 7.3. As per the requirement ,after changing the password the portal should force logoff without further execution. We are able to change the password but not able to force a logoff . Any suggestions how this can be achieved.
    Regards,
    Srinivas
    Edited by: Nivas209 on Feb 17, 2012 10:23 AM

    Hi Detlev,
    I am using the below link , for session termination and Force Log-off.
    http://help.sap.com/saphelp_nw73/helpdata/en/19/667bae77684887bea80129800fd701/frameset.htm
    I am able to force a log off, but the desktop inner page only gets logged out.The Masthead and Top level remains the same(Not Logged Off) .
    If i do a refresh in my browser everything gets logged off and Login screen appears.Now how can i do a browser refresh/reload in that script.
    I tried with few things it doesn't work. Please suggest on this.
    Regards,
    Nivas209

  • How can I export LDAP portal users

    We are using SSO with LDAP for production portal EP 7.0 users.
    We would like to export ALL the users.
    I tried to export all the users under
    User administration-> Export button but it is not exporting all the users from LDAP
    Does anyone have any experience with this before?
    From,
    Pranav  Thaker
    8457

    Hi PT,
    You have 41 of 43 questions unresolved. Are you sure that is a correct status?
    Are you still interested in answers to secure "your" system...?
    Regards,
    Julius

  • 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.

  • Forced logout for convergence

    Hello,
    I'm trying to do a forced logout for specific users from the convergence webmail.
    Om the mailstore machines I'm running "imsconnutil -k -u <user_login>". The command succeeds, but there is no forced logout.
    https://wikis.oracle.com/display/CommSuite/imsconnutil
    What is the correct way to force a logout for a convergence user?
    The ENS daemon is enabled.

    There is a MOS knowledge article about this:
      How To Get A Specific User Logged Off Or Disconnected From Convergence (Doc ID 1421725.1)
    https://support.oracle.com/rs?type=doc&id=1421725.1
    It is not as simple as using the imsconnutil -k command for IMAP.
    There is also an enhancement request:
       BUG 17529404 - Provide build-in possibility to disconnect a user
    Please open an support request to be added to that ER 17529404.

  • Portal user ID  read in abap webdynpro.

    Hi All,
    We have developed on web dynpro application for Dealer Portal. The Dealer logs into the portal with his ID. How can we capture this Portal User ID of the Dealer in our application.
    The Portal User ID and the R/3 User ID are different.
    I have followed the given steps...
    Step 1
    Within the Main Window of your ABAP Web Dynpro application, select Inbound Plugs tab. Now double click on the Startup Plug Named 'DEFAULT' (or what ever you have called it if you have changed this since window was created).
    Step 2
    Within the plug method HANDLEDEFAULT Add a new importing parameter below 'WDEVENT' parameter call it IV_USER of Type UNAME.
    Step 3
    Now within the code section of the plug method HANDLEDEFAULT you can freely assign the value of IV_User to an attribute of your component controller. i.e. wd_comp_controller->userid = IV_USER. Alternatively you could assign it to a wdp context node / attribute.
    Please note this value will not be available with the WDDOINIT of your main view as WDDOINIT method of this view is called before the window HANDLEDEFAULT method. Put your code into the method WDDOMODIFYVIEW of your main view instead.
    Step 4
    Double click on the webdynpro Application, within the Parameters tab add a new parameter. You should just be able to use the F4 help on the param column and select the IV_USER entry.
    Step 5
    Save your application nad activate your web dynpro
    With the 'Content Administration' tab of your portal
    Step 1
    Create an iview of type ABAP Web dynpro specifying the application name as that of your created wdp (must be exactly the same).
    Key information for creating iView:
    Create as iView template (select template as SAP Web Dynpro iView)
    namespace = sap (check service name in SICF if this is not correct)
    Application Name = ZWDA_EXAMPLE(name of your wdp created in se80)
    Application Parameters = IV_USER=
    Step 2
    Save and setup any other details required when creating any other iView
    but not able toget user id .
    Rakesh

    Hi,
    Why don't you use the sy-uname to get the login details of user.
    Portal users are mapped to R/3 system, so using sy-uname will definitely give the user details.
    Function module to get employee details by passsing user name
      CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER'
        EXPORTING
          user               =  sy-uname
          iv_with_authority = space
        TABLES
          ee_tab            = lt_ee_tab.
      IF lt_ee_tab[] IS NOT INITIAL.
    Passing employee number to export parameter
        READ TABLE lt_ee_tab INTO ls_ee_tab WITH KEY user = sy-uname.
        IF sy-subrc = 0.
          ev_pernr = ls_ee_tab-pernr.
        ELSE.
          ev_failed = gc_failed.
        ENDIF.
      ELSE.
        ev_failed = gc_failed.
      ENDIF.
    Does this help?
    Thanks,
    Rahul

  • Create portal user using web dynpro abap application

    Dear All,
    I would like to know is it possible to create portal user-id through web dynpro abap application.
    My requirement is
    > I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
    > I will click on submit, one unique id will get created. This unique id will be the login id for portal.
    I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
    If it is possible to create the portal users using web dynpro abap pls share the code as well.
    Regards,
    Swapnil Indulkar

    Hi swapnil,
    I think by using BAPi.. BAPI_USER_CREATE1 you can create.
    Please check this...
    Create portal user from webdynpro abap
    Creating user and assigning a group through code
    user administration su01
    How can i get the portal user id from logon ticket in the webdyn 4 ABAP
    Cheers,
    Kris.
    Edited by: kissnas on May 21, 2011 8:47 AM

  • Which Portal user based upon SID

    I can use 'wwctx_api.get_user' to determine who is executing a particular session. But based upon the SID of a session how can I tell which Portal user is executing?

    Assuming that you know the session id (SID), you can get the portal user executing that session using the following query:
        select user_name
        from wwctx_sso_session$
        where id = &sessionId;
    For all the authenticated portal sessions it will return the user id of the authenticated user and for the unauthenticated portal sessions it will return PUBLIC.

  • How can we retrieve the Porta User in the Webdynpro Application

    Hi,
    How can we retrieve the portal user information in the webdynpro applications?.
    Thanks in Advance
    Chandra.

    Hi Chandra,
    In the init() funtion of your View use client USER API below is the usage of it..
         String Username = "";
         IWDClientUser wdUser = null;
                   try {
                   wdUser = WDClientUser.getCurrentUser();
                   } catch (WDUMException e) {
                   e.printStackTrace();
         IUser user = wdUser.getSAPUser();      
         Username =user.getUniqueName()
    Thanks Raj.
    xxxxxxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Feb 18, 2008 7:27 PM

  • Anonymous Portal User

    hi,
    I have  initiate a guided procedure workflow by any end user, who is not having any portal id.So i require an Anonymous Portal User who need not have a portal id .How can i create Anonymous Portal User ?Please give some documents regarding this.
    Thanks in advance,
    Shami.

    Hi,
    you have to set following parameters in UME.
    ume.login.anonymous_user.mode = 1   (for default vale  0  for simple anonymous logon used)
    ume.login.guest_user.uniqueid = Guest (default value)
    you change values using config tool.
    Regards
    Ben

  • Retrieving portal user name

    Hi,all
    In NW 2004 I retrieved the user name of portal user by following:
    HttpServletRequest req =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter ()).getHttpServletRequest();   
    wdContext.currentContextElement().setUserName(req.getRemoteUser());
    But in NW 2004S it is not working.I can not to locate IWebContextAdapter.
    How can I retrieve the portal user name here?
    Regards,
    Michael

    Hi,
    Please try following code and let me know.
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    try
         //get the currently logged in user
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
        //get the com.sap.security.api.Iuser; It is null in case wdUser represents an anonymous user
        IUser user = wdUser.getSAPUser();
       //check whether the user is anonymous
       if (user != null)
          //access logon ID by iterating through the IUserAccount array
          IUserAccount[] acct = user.getUserAccounts();
         if(acct[0] != null)
            String strUserid = acct[0].getLogonUid();
            wdContext.currentContextElement().setId(strUserid);
            //pass the value obtained from the portal to value attribute
    catch (Exception e)
       wdComponentAPI.getMessageManager().reportException("Failed to get current user: " + e.getLocalizedMessage(), true);
    Regards,
    Vaibhav

  • How to force a new password in portal with LDAP user? external users

    With an external portal (used by agents that do not work for you or reside in your office), company policy is for password to be changed every qtr.
    If the users are creating as LDAP users how to force them to change their password when required?
    Is this a custom application that needs to be written so when they log into the portal if the qtr has expired the portal ask them to enter a new password that becomes valid for the next qtr.
    Versus internally deleting and emailing all the users a new password?

    Hi Glenn,
    We are getting one problem when we are creating user in LDAP and login with that user in  Portal that time we are getting Password change screen , but when we create a user in LDAP and change the password of that user in LDAP then when the user tries to  Login to portal that time we are not able to see the password change screen.
    But again if we change the password of that user through Portal we are able to see change password screen.
    can you help on this how we can force the user to change password when we are changing password in LDAP or in SAP System.
    Regards
    Trilochan

  • 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

Maybe you are looking for

  • I am not able to find Template Builder in MS Word 2003

    Hi All, we have installed MS Word 2003 Ver in our work station for BI Publihser Reports, but i am not able to find the template builder in the Menu bar. i was try to add in tool -> Template and add-Ins also, but still i dint get the template builder

  • Problem in connection making at server side

    I wrote the following piece of code while working with bluetooth jsr-82 and j2me. statusform.append("before Connector.open..."); lserver =  (L2CAPConnectionNotifier) Connector.open( url ); statusform.append("Before acceptAndOpen"); request = lserver.

  • Presenter SCORM courses not scoring correctly in Firefox

    We are having an issue with SCORM courses created in Presenter not communicating back the correct quiz score when using the new version of Firefox. These courses worked properly in the older version of Firefox. I can provide the course if needed. The

  • Checkpoint not complete error in alert log

    version : 10.2.0.5 , 11.2.0.2 This is what I found about "Checkpoint not complete" from google "+This message indicates that Oracle wants to reuse a redo log file, but the current checkpoint position is still in that log. In this case, Oracle must+ +

  • All the pages in my frameset just stopped working, please help! click for more details

    im using .htm files as my pages... So I was trying to add a border to my frameset, and I saved the changes, all I thought I had changed was the border, but obviously not since that when I went to go look at it - all the frameset pages say no page to