Portal User Information

How can i know who and when modified a user in portal (JAVA), just like ABAP in tcode SU01. If i can know who grant the groups and roles to a user,  that would be better
Best regards

Dear Francisco,
You may check the security logs :-
UME Logging and Monitoring:
http://help.sap.com/saphelp_nw70/helpdata/en/f2/6a82270fd99844a65085bd90022fab/frameset.htm
Security Logging : Contain important security events (like failed user logon attempts, changes to users and authorizations, etc.)
Storage Locations : /usr/sap/SID/j2ee/cluster/serverX/log/security.log
Security audit log - SAP Notes 1278155
You can do the custom development as per your requirement using the UME API
API for User Management - [Click here|http://help.sap.com/javadocs/NW04S/current/se/index.html]
Search for the code in SDN code galory.
Best Regards
Arun Jaiswal

Similar Messages

  • Get enterprise portal user informations

    Hi all,
    is there a way to get some portal user informations during runtime in a visual composer application?
    For example: I want to display the user id in a form automatically.
    Thank you for your help!
    Kind regards, Patrick.

    Hai ,
    u have to get that abap side not from Vc side i think soo
    Regards ,
    venkat p

  • Get current logged portal  user information

    Hi,
    I need to get information about current user logged to the portal from a J2EE application. I developed an Enterprise application project with a java servlet and I integrated it into the portal as an URL iView.
    This in the code of servlet:
    import com.sap.security.api.*;
    IUserFactory userFactory= UMFactory.getUserFactory();
         IUser user= UMFactory.getAuthenticator().getLoggedInUser();
         out.println(user.getUniqueID().toString());
         out.println(user.getDisplayName().toString());
         out.println(user.getName().toString());
         out.println(user.getUniqueName().toString());
    When I run my application I have this output:
    USER.PRIVATE_DATASOURCE.un:Guest Guest, Guest Guest
    But I access with another user, it's not Guest.
    How can I solve this problem???THANKS

    Hi,
    Please try checking with following code
    ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
                      IUserFactory usf = UMFactory.getUserFactory();
                      IUser iuser = null;
                      IUserListElement userElement = null;
                      int i = 0;
                      while (rst.hasNext()) {
                      iuser =  UMFactory.getUserFactory().getUser(rst.next().toString());
                      String email = iuser.getEmail();
                       String fname = iuser.getFirstName();
                        String lname = iuser.getLastName();
    let me know if there are any issues.
    regards
    Anil

  • How to get Portal user from a standalone Java application

    Hi,
    I have a standalone Java application from where I need to fetch the Portal User Information like userid and email id.
    I am using the below line of code
    iUser = UMFactory.getUserFactory().getUserByLogonID("e017939");
    I have included the jar file com.sap.security.api , But it was giving me the below exception
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:55)
         at com.am.wcas.java.mailscheduler.kmaccess.FetchDataFromKM.getiUser(FetchDataFromKM.java:29)
         at com.am.ScheduleEmails.main(ScheduleEmails.java:89)
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Then I went throught he SDN threads and they asked me to include the
    logging.jar and com.sap.security.perm.api .
    I Included them, then also, it is giving me Exception
    java.lang.NoClassDefFoundError: com/sap/engine/lib/logging/LoggingHelper
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:56)
         at com.am.FetchKMData.main(FetchKMData.java:30)
    Exception in thread "main"
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Kindly let me know if it is possible to access the User info using UMFactory in a standalone Java application. If yes kindly let me know where i am going wrong.
    Regards,
    Shilpa B.V

    Hi Shilpa,
    1. Check that you have added com.sap.security.api within the Your Project>Libraries folder (under navigation tab) and also added jars in the build path of the Your Project under project>properties>Build Path.
    2. In case you have a DC instead of Web Dynpro Project then you have to add the com.sap.security.api under Your DC>Used DCs and have compile time and runtime dependency added.
    Here java.lang.NoClassDefFoundError is caused basically due to only build time dependency added and reference to the jar missing at runtime. Rest the code to retrieve the current user id using UME API and getUserByLogOnID("....") method with/without portal environment would not be an issue at all.
    Regards,
    Tushar SInha

  • 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

  • Table name in which user information is stored in weblogic portal

    Hi Friends,
    Please specify the name of the table which stores user information(such as username,firstname,lastname,email,etc.)in weblogic portal.
    Thanx in advance.
    Chiku.

    Default table is PROPERTY_VALUE. You can write your own property manager to
    save is somewhere else
    Rajneesh
    <John Wayne> wrote in message news:[email protected]..
    Hi Friends,
    Please specify the name of the table which stores user information(such
    as username,firstname,lastname,email,etc.)in weblogic portal.
    Thanx in advance.
    Chiku.

  • Importing NT User information into Portal

    We are using Portal in an NT environment, and we have been able to get through the necessary single sign on issues.
    Now, we need to pull our NT user information into Portal's user database, including all the groupings we already have set up so that we can take advantage of Portal's exceptional security features. This is key to our ability to use the product, and to our demo in a week.
    The fact is we have 5,000 users to enter, and it is prohibitive for us to do that through the standard Portal APIs. We already have the users' input once in NT, we can get a flat file with all the information we need, we just need a way to get this information
    into the appropriate tables within Portal's database.
    Is there a script or some more "automated" way you can suggest for us to do this?

    Maybe you could try to use an intermediate LDAP export file (ldif), since Active Directory is LDAP-based and you can plug a LDAP to your Portal SSO Login Server.
    I only have tried exporting and importing using .ldif files up to now.
    I also have heard about techniques to use NT user account info to log on to Portal ; 'could be easier.

  • Portal User Details-Additional Information

    Hello Friends,
    I need to access portal user details, I have gone through forum and got info how to get user id, ( so far I also implemented )..but my problem is to get the Portal user ->additional information and then field position....
    userid I have got while setting following in ivews application parameter
    iv_userid=<User.LogonUid>
    I need to konw from where comes this USER class ( how I can see remaings fields of user class to access the position ) ?
    Hope I am clear ,
    Regards,

    Hi,
    Check this link.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/91f0cd90-0201-0010-a190-c4d7cbd5b463
    Hope it helps.
    Regards,
    Khushboo

  • Information regarding Portal user licensing

    Hello Experts,
    i am looking for some standard SAP documentation ,Article or PDF which describe the Portal users licensing procedure/process in detail.
    Also if in production Portal let say there are 1000 users and due to some reasons they are not using Portal frequently their login frequency is very low.
    So in this case how the licenses can be managed.
    if any body faced the same scenario please share your experiences.
    Any inputs/suggestions are most welcome.
    Thanks,
    Siddharth

    Siddharth,
    It would be best if you were able to contact you SAP Account Manager for any query related to licensing. I doubt you would be able to locate any facts / figures related to that.
    Thanks,
    GLM

  • 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

  • Getting Logged on User'Information in an Oracle-Form SSO Partner Application

    Hi.
    I could run Flight-of Fancy Application and capture user's information by calling the
    "Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
    and defined an Oracle-Form application as Partner application like FOF.
    I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
    Thanks in advanced.

    Hi.
    I could run Flight-of Fancy Application and capture user's information by calling the
    "Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
    and defined an Oracle-Form application as Partner application like FOF.
    I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
    Thanks in advanced. If you're writing your own partner application, then you are correct to get the user information from the output variables
    from the parse_url_cookie procedure. You should then set the information you want to keep track of in the cookie, or combination
    of cookie and persistent storage in the database. Take care of the security implications while doing this.
    On subsequent calls to your application, the user info should be obtained from the cookie and the database, if you
    are using a combination of the cookie and database storage to keep your info.
    The owa_cookie.get routine is used to read the cookie, which is generated with owa_cookie.send.
    These routines work fine, when invoked correctly.
    If you are having trouble with them, you're probably not using the calls properly.
    The following code provides an example of how to use the owa_cookie calls...
    create or replace package testcookie
    is
        procedure show (p_name IN VARCHAR2);
        procedure send
            p_name    IN VARCHAR2,
            p_value   IN VARCHAR2,
            p_path    IN VARCHAR2 default null,
            p_expires IN VARCHAR2 default null
    end testcookie;
    show error package testcookie
    create or replace package body testcookie is
        procedure show (p_name IN VARCHAR2) is
            v_cookie owa_cookie.cookie;
        begin
            v_cookie := owa_cookie.get(upper(p_name));
            htp.htmlopen;
            htp.bodyopen;
            htp.print(v_cookie.vals(1));
            htp.bodyclose;
            htp.htmlclose;
        exception
            when others then
                htp.htmlopen;
                htp.bodyopen;
                htp.print('NO COOKIE FOUND.');
                htp.print(SQLERRM);
                htp.bodyclose;
                htp.htmlclose;
        end;
        procedure send
            p_name    IN VARCHAR2,
            p_value   IN VARCHAR2,
            p_path    IN VARCHAR2 default null,
            p_expires IN VARCHAR2 default null
        is
            v_cookie owa_cookie.cookie;
            l_agent varchar2(30);
            l_expires varchar2(30);
            l_path varchar2(100);
        begin
            if p_expires is null then
                l_expires := null;
            else
               l_expires := to_date(p_expires, 'MMDDYYYY');
            end if;
            if p_path = 'ALL' then
                l_path := '/';
            else
                l_path := null;
            end if;
            owa_util.mime_header('text/html', FALSE);
            l_agent := owa_util.get_owa_service_path;
            l_agent := substr(l_agent, 1, length(l_agent) - 1 ) ;
            owa_cookie.send(
                name    => upper(p_name),
                value   => p_value,
                expires => l_expires,
                path    => l_path
            owa_util.http_header_close;
            htp.htmlopen;
            htp.headopen;
            htp.headclose;
            htp.bodyopen;
            htp.print ('Cookie set.');
            htp.bodyclose;
            htp.htmlclose;
        end;
    end testcookie;
    show error package body testcookie;
    grant execute on testcookie to public;If you load this into a schema which a DAD can access, then you can invoke the show and send procedures to view and
    generate cookies.
    To generate a cookie, issue the following from your browser ...
    http://server.domain.com/pls/dad/schema.testcookies.send?p_name=test&p_value=hello
    To view the cookie:
    http://server.domain.com/pls/dad/schema.testcookies.show?p_name=test

  • Webdynpro - Check if a portal user has a user in R/3 Backend

    Hi Experts,
    i have following problem, and maybe some of you can help me out with an idea or (much better) a solution:
    Our Company is running an Enterprise Portal on NW2004s (SPS 18). Currently i am developing a Java WebDynpro Application for the portal called Transactionstarter. Withhin this application a portal user can simply add a backend System (R/3), a transaction and a Description. This information will be stored in a xml file in userhome in KM. When the user clicks the description, SAP WinGui will open with the transaction he defined before. We use SSO for opening the transaction if the user has a backend user. If not, the loginscreen of the backend will appear.
    All this works fine.
    Now we have the requirement for an automated system check.
    The portal user can run an initial system check. This system check should check all configured backend systems if the portal user has a user in R/3 backend.
    But how can i check if my portal user exists in backend?
    I cannot use JCO because we have a lot of Systems (more than 300 all together) and i don´t want to create a destination for every system. Or did i misunderstood something with JCO?
    Does anyone of you have a solution, how i can check every system, if the portal user has also a backend user?
    Thanks in advance.
    Regards
    Pascal

    Hi Pascal,
    with JCO you can use also the method JCO.createClient:
    public static JCO.Client createClient(java.lang.String client,
                                          java.lang.String user,
                                          java.lang.String passwd,
                                          java.lang.String lang,
                                          java.lang.String mshost,
                                          java.lang.String r3name,
                                          java.lang.String group)
    Creates an instance of a client connection to a remote SAP system (with load balancing)
    Parameters:
    client - SAP logon client
    user - SAP logon user
    passwd - SAP logon password
    lang - SAP logon language
    mshost - Host name of the message server
    r3name - Name of the SAP system
    group - Name of the group of application servers
    Returns:
    the newly created client
    for connections to other systems. So you can avoid to create destinations
    Regards
    Matteo
    Edited by: Matteo Fusi on Apr 1, 2009 11:33 AM

  • How to get password of a logged in portal user in webdynpro.

    hi,
    i want to get the password of the logged in portal user through webdynpro. i already know how to get the user id and other information through webdynpro (using WDClientUser), but i want to get the password as well.
    this is an urgent requirement. Immediate help will be highly appreciated and points will be awarded for helpful answer.
    thanks in advance.

    Hi
    User Management APIs don't give the liberity to obtain the password, instead you can verify a password. Please check if your requrirement can be modified to check for password.
    Please use code mentioned below and the one suggested before.
    loggedInUser = WDClientUser.getCurrentUser();
    user = loggedInUser.getSAPUser();
    if (user != null)
    IUserAccount[] acct = user.getUserAccounts();
    if(acct[0] != null)
    b = acct[0].checkPassword(password);
    Thanks
    Srikant

  • 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

  • WHAT IS THE MECHANISM FOR AUDITING PORTAL USER ACTIVITY

    Is there any default mechanism for auditing a portal users access to
    tables. At the DB level, we are seeing the portal_public user but we want to see the portal user instead; e.g. we need to report on activity such as: portal user johndoe deleted a row of data from a table.
    johndoe is only a portal user not a database user.
    We are trying to keep from writing additional custom code to auditing. We are
    using wwctx_api.get_user_id in other parts of the application and we would like
    to avoid writing a custom auditing module.

    William,
    I'm not sure if this is what you are looking for, but...
    When you create (or edit) a component in Portal 10g, there is a Log Activity check box. If you check this box, then go to Manage the component (in the Portal Navigator), there are Develop, Manage and Access tabs. The Manage tab has a Monitor icon, which has the information you may be looking for. This does not seem to be available directly for database tables. However, I created a Calendar, based on a database table I created to keep track of the Calendar Events. I also created a form to allow users to add Calendar Event entries. I turned logging on for both components. The Monitoring allows me to see when each user has accessed the Calendar, and who and when they insert, update or delete entries from the Calendar table.
    -Ricky Burke

Maybe you are looking for

  • Problem with socket and Threads

    Hi, I have coded a package that sends an sms via a gateway. Here is what is happening: * I create a singleton of my SMSModule. * I create an sms object. * I put the object in a Queue. * I start a new Thread in my sms module that reads sms from queue.

  • Is it better to use just one project or to jump back and forth?

    Greetings, I am using Captivate 4. And I am wondering if it is better to use just one project or to jump back and forth? I have one main project and rather than make one big project, I wondered about jumping off to small projects and returning to the

  • Spotty iTunes Shared Library Connection

    I continue to have problems sharing my iTunes library between my PC and laptop (both Dells with Windows Vista). My entire collection is on my PC, but I prefer using my laptop as a mobile music library. However, at random times my PC library disappear

  • Business rule for compare data in form

    Hi all, Let us explain my scenario, I have 2 dynamic calc members in a dataform. I just want to compare those 2 member rows( data compare) and show some message. is there any way i can make? can i create one business rule to make this happend? is it

  • Share Gobi2000 connection over WiFi

    Hello ! I got a week ago my Thinkpad T510 with Gobi2000 3g modem. Everything works fine but I got an issue right now. Under Windows 7 I wanted to create ad-hoc WiFi network and share my 3g connection to other PC and Android Phone. On Android there is