User details on Portal login

Hi Experts,
I have a requirement   when user logins immediately his details like name and his ip address have to  be stored in log file of server.I have created a par file for fetching user details and updating the log file and added it in default framework page.
When i right click on iview and click preview the log file is getting updated but on logging into portal and on load of framework page log file is not getting updated..Please suggest.
Below is the code how am updating the log file..
private static Location myLoc = Location.getLocation(ipaddress.class);
static {
myLoc.addLog(new FileLog("C:/Logs/TTSL/Anusha.txt"));
Thanks,
Anusha

Set a debug break point to the entry of the component you have wrote. If you are loading the portal with your stuff inside, does NWDS stops there?
cheers

Similar Messages

  • Where does apex get user details from for login in

    sorry for this stupid question. I have been looking up in google "where does apex get user details from for login in" and nothing answers my question. Basically I wanted to know when you log in your application how does apex know you have access to this application. How does it know you are a valid user because I am creating an application which basically checks if a user exist in one database and also checks if he/she exist in the second database.
    Thanks you and sorry if this is very newbie

    In the page 101 which is the login in page in the login in process. I have this in the source its not working in term of it is not letting me login in anymore even though I exist in the user table.
    DECLARE
    v_access_level number;
    BEGIN
    SELECT count(*)INTO
    v_access_level
    FROM USER
    WHERE UPPER(USER_NAME) = UPPER(:APP_USER);
    IF NVL(v_access_level, 0) !=0 THEN
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :P101_USERNAME,
        P_PASSWORD    => :P101_PASSWORD,
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':9'
    ELSE
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :P101_USERNAME,
        P_PASSWORD    => 'YtYuTrFRd',
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':9'
    END IF;
    end;
    please bare in mind that my USER table DOES NOT have a password because the authentication scheme as all the details of login in to any systems. I am only trying to check if the username exist in my USER table.
    Thanks

  • Login EP users detail through webDynpro????

    hi all!
    i want the login EP users detail through webDynpro
    which involves creating a view in which i can access the details of EP user whatever available in User Profile in EP.
    see if u can help?????
    thanks and regards
    sachin

    Hi Sachin,
    Check this
    UserId in Web Dynpro for Portal User
    Identify portal user
    retriving user details from user rofile in portal database
    Retriving user details from Portal database
    How to test portal user from webdynpro ?
    How to fetch portal content for an user
    Best regards, Maksim Rashchynski.

  • To add custom user attributes in portal user details

    Hi,
    I am looking at the possibility of adding custom user information attributes in User details of Portal User. By default there are few tabs provided ( general, account info, contact info, additional information.....). I am planning to have another extra tab (custom tab with some custom fields ) to be developed and accessible through external application. My data source would be AS database.
    Not necessary that the custom fields to be visible in the UI. but should be manipulated programatically.  
    Request inputs on feasibility and also the approach that could be followed.
    TIA,
    -Naresh

    Hi,
    Follow the link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/0316d50bbe025ce10000000a1553f7/frameset.htm
    This explains the process of adding the custom attributes in user admin.
    Thanks,
    Rajani

  • User details change on portal

    Hello experts, for some odd reason I have been unable to change user details on portal recently. I am getting the following error: "A problem has occurred in the persistency. The original message was: BAPI_USER_CHANGE@BWPCLNT500: ID=01, NUMBER=492, MESSAGE=You are not authorized to change users in group".
    I do have administrator roles and everything, and I used to be able to change user details (like e-mail and language). What I do not understand is why this suddenly stopped working, as it was working before (the funny thing is that even with the default administrator user from Portal it is not possible to change user details anymore). Still, how can I solve this problem? We are using EP 7.0 and another SAP system (ABAP) for user management. I am not in charge of the ABAP system, though I do have access to several transactions in there. I tried looking for the "BAPI_USER_CHANGE" thing, but I could not find it. Is that a role or something I need to assign to my user?

    Hi, thanks for the answers. I checked the roles of user SAPJSF. He has SAP_BC_FP_ICF, SAP_J2EE_ADMIN and he previously had SAP_BC_JSF_COMMUNICATION_RO, but I changed it for SAP_BC_JSF_COMMUNICTION. However, once I restarted the Web AS, there was no communication between our backend system and the portal (checking the logs, I found the error "#1#com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: User SAPJSF has no RFC authorization for function group SYST." Therefore I added the role SAP_BC_JSF_COMMUNICATION_RO role, without taking out the other one, and restarted the server. There is now communication between the backend system and the portal, but I still cannot change user details from within the portal.
    Any other ideas?

  • Getting User Details using objectid

    Hi,
    First i am querying the projects using ALUI IDK
    ===========
    IProjectManager projectManager = GetProjectManager(Request, Response);
    IProjectFilter projectFilter = projectManager.CreateProjectFilter();
    projectFilter.NameSearchText = searchText;
    Plumtree.Remote.PRC.Collaboration.Project.IProject[] projects = projectManager.QueryProjects(projectFilter);
    =================
    then i am retreiving User IDsadded as Project Leader
    ========================
    IRole role = null;
    RoleTypes roleType = RoleTypes.Leader;
    role = project.GetRole(roleType);
    int[] GroupID = role.GetMemberIDs(MemberQueryTypes.AllGroups);
    Display Group ID
    =========================
    Now the issue is i am not able to figure out how to get the users detail ie authusername, login name etc present in the groups that are retrieved.
    Regards,
    Ankit
    Edited by: electrazy on Jul 18, 2011 11:39 AM
    Edited by: electrazy on Jul 20, 2011 2:22 AM

    Hello electrazy,
    This is not possible from within the IDK. The best you can get are the Extended Data properties that are associated with the user object in the Global Property Map. If you want to get user information like the authentication name and the login name, you'll have to use the Portal Server API or directly query the database.
    -Mike Headley, WCI Developer Support

  • How do I get Portal Login User Details in WD Application

    Hi,
    Could you please help me out as how to get the user who has logged into the portal.
    Regards,
    Abilash.

    Hi,
    In you webdynpro location you can use the following code to get the logged in user details.
    String strUserName = null;
    try {
    IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
    IUser sapUser = wdClientUser.getSAPUser();
    if (sapUser != null) {
    IUserAccount[] acct = sapUser.getUserAccounts();
    if (acct[0] != null) {
    strUserName = acct[0].getDisplayName();
    } catch (WDUMException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (UMException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    The following import statements have to be used
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserAccount;
    import com.sap.security.api.UMException;
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDUMException;
    Award points if helpful.
    Regards,
    Sujana

  • To get login details of portal into webdynpro application

    Hi All,
             How to get the portal login details(user name) into my webdynpro application.
    Thank you,
    Harsha P.

    Hi,
    If you want to have portal login details from backend system (with ABAP) you should ask this question in some portal forum and ask if it is possible. This has nothing to do with workflow or UWL. Even if you get the portal user ID to the backend system, then what? Do you want to manipulate the portal roles etc. from your ABAP WD application? Then you will have even more complicated requirements to achieve with ABAP. It is not that straightforward to call different portal functionalities from backend system. You might need to do some "portal development". And eventually your ABAP WD application might come just an unnecessary wrapper component for calling some web services or whatever in portal.
    Regards,
    Karri

  • How to access Sap portal login user in ejb web service

    Hi,
    I wnt to access SAP Portal login user in my ejb application which resides on the same server.
    I am using following code
    try {
         IUser user =null;                         IWDClientUser wdUser = WDClientUser.getCurrentUser();
                                  user = wdUser.getSAPUser();
                             } catch (WDUMException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
    Some additional jar files are required for this?
    The same code works fine with webDynpro but not with ejb.
    Thanks in advance     
    Best regards,
    Nilesh

    Thanks for reply.
    I have already added com.sap.security.api in my EJB module project classpath. How to add the same in EJB application Project (application-j2ee-engine.xml)?
    Best regards,
    Nilesh

  • Portal User details and credentials for a J2EE application?

    Hi,
    I am trying to access a J2EE application which is deployed in  SAP Web Application Server. I want to maintain the security of this application depending the portal user. So I want to get the user id of the portal login to my J2EE application. For Example:
    A user with id "super" is logging into portal I want the userid "super" in my J2EE application how to get the userid to my J2EE application's servlet. Is this possible? If possible please tell how I can acheive it?
    Can I do it by creating HTTP System? If possible can u tell me where can I set the URL?
    Thanks,
    Ashok.

    hi,
    Certainly you can get the user id of the portal login in your J2EE application by using UME api's
    IUserFactory userFact = UMFactory.getUserFactory();
    getUserFactory().getUser(String uniqueID)
    getUserFactory().getUserByLogonID(String logonID)
    Also have a look at this
    http://help.sap.com/saphelp_nw04/helpdata/en/15/abdc3ed98f7650e10000000a114084/frameset.htm
    Instead  of url iview, it would be better to use AppIntegrator
    Also have a look at this
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars/using the user management api with ep applications.pdf
    Hope it helps...
    Regards,
    Ganesh N
    Hope it helps...

  • Details regarding Portal users vs 8i DB users

    Is there a good DBA level explanation of the differences between a PORTAL/SSO user and a normal database user?
    It appears we have to set up new users in Portal for all of our existing users in the database (painful). This was not required in Webdb. Is there a way to import existing database users and link them to their existing schemas painlessly?
    The bits and pieces I can find indicate that if you do go ahead and set up a new Portal user manually and link them to their own existing database user schema then the normal database objects roles and rights should appear. This does not seem to be true in 3.0.8 Portal. I created a portal user, assigned them to their existing 8.1.7 schema and:
    1) the normal database objects they have rights to do NOT show up in the browse database objects. In Webdb 2.2. all of these objects show up fine. The ability to browse database objects was one of the good things about Webdb that we need to preserve.
    2) try to create a portal component, a form, based on a table/view. Unlike #1 above I can in fact create the form on an existing table even though it does not show up in the browse above. The user has update rights to this table, but the form will NOT compile if I leave in the UPDATE, DELETE, INSERT buttons. What is going on?
    Is there a technical paper that discusses exactly how to map db users to portal users and how to transfer rights, privileges etc. so we can make portal 3.0 as functional as webdb 2.2 was?

    Quinn,
    Here are my answers:
    1) the normal database objects they have rights to do NOT show up in the browse database objects. In Webdb 2.2. all of these objects show up fine. The ability to browse database objects was one of the good things about Webdb that we need to preserve.
    Ans))
    You have better control on this ability now.
    2) try to create a portal component, a form, based on a table/view. Unlike #1 above I can in fact create the form on an existing table even though it does not show up in the browse above. The user has update rights to this table, but the form will NOT compile if I leave in the UPDATE, DELETE, INSERT buttons. What is going on?
    Ans))
    The ability to create a component in Oracle Portal 3.0 no longer depends on whether the developer has privileges to build components in a schema, but instead on whether the developer has privileges to build a component in an application.
    =====
    Is there a technical paper that discusses exactly how to map db users to portal users and how to transfer rights, privileges etc. so we can make portal 3.0 as functional as webdb 2.2 was?
    Ans))
    Read the following help:
    a) Migrating WebDb users to Oracle Portal.
    b) What are schema and object privileges?
    c) What are global privileges?
    d) What's the difference between an Oracle Portal User & an Oracle Database User?
    ====================
    Now the next question is..Where to find them?
    Here are the location:
    login > Navigator > Database Objects tab>
    Click on "Grant Access" > Click on the context help.
    Here under the related topics you will find:
    (b). Click on it:
    Again under the related topics you will find:
    (a) & (d) (Both are same).
    For (c):
    login > Create a user > edit that user > click on "Privileges" tab > context help.
    Hope this will clear your doubts...
    Thanx,
    Chetan.

  • How to get the User Details inoformation in portal?

    I had defined the user informations in "Portal User Details". But i don't know how to get it and what the user table is?
    for example: How to get the email address of user i have defined in portals?
    Tank you very much!
    Ghia Liu
    Genesyslogic.com.tw

    You would use the portal API's for this, there is one named wwsec_api.person_info that returns a record with the specified user's information, such as first name, lsat name, email, telephone, etc - a pretty long list. With release 2 of portal the data is no longer stored in the wwsec_person$ table as it was in release 1 so use the API (which actually is how I would normally do it in release 1 as well).
    To get more documentation on portal API's go to: http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/astart.htm
    Hope that this helps you - enjoy the day!
    Art

  • Retriving user details from user rofile in portal database

    HI all,
    any one knows how to retrive user details from user rpofile in portal database. I am using webdynpro appliction.Please reply.
    Thank you
    Maruthi

    Hi maruti Rao ,
    All Gives U gud Idea..here i give u some brief procedure.First of all u need to add 2 jar file in ur project structure for proper working of "com.sap.security.api.IUser" Interface. After that for retriving Users data Stored on LDAP Server.
    If you are using an LDAP directory as a data source for your user-related data, the ‘logical’ attribute names used by the Java application programming interface (API) of SAP User Management Engine (UME) must be mapped to the ‘physical’ attribute names used in the schema of your corporate LDAP directory.
    Example Data-Source File is as Below From Where U can Get All The Information of Logged user...
    <dataSources>
    <dataSource id="CORP_LDAP"
        className="com.sap.security.core.persistence.datasource.imp.LDAPPersistence"
        isReadonly="false"
        isPrimary="true">
      <responsibleFor>
        <principal type="account">
        </principal>
        <principal type="user">
          <nameSpaces>
            <nameSpace name="com.sap.security.core.usermanagement">
              <attributes>
                <attribute name="firstname" populateInitially="true"/>
                <attribute name="displayname" populateInitially="true"/>
                <attribute name="lastname" populateInitially="true"/>
                <attribute name="fax"/>
                <attribute name="email"/>
                <attribute name="title"/>
                <attribute name="department"/>
                <attribute name="description"/>
                <attribute name="mobile"/>
                <attribute name="telephone"/>
                <attribute name="streetaddress"/>
                <attribute name="uniquename" populateInitially="true"/>
              </attributes>
            </nameSpace>
          </nameSpaces>
        </principal>
          <principal type="group">
          </principal>
      </responsibleFor>
      <attributeMapping>
        <principals>
          <principal type="account">
          </principal>
          <principal type="user">
            <nameSpaces>
              <nameSpace name="com.sap.security.core.usermanagement">
                <attributes>
                  <attribute name="firstname">
                    <physicalAttribute name="givenname"/>
                  </attribute>
                  <attribute name="displayname">
                    <physicalAttribute name="displayname"/>
                  </attribute>
                  <attribute name="lastname">
                    <physicalAttribute name="sn"/>
                  </attribute>
                  <attribute name="fax">
                    <physicalAttribute name="facsimiletelephonenumber"/>
                  </attribute>
                  <attribute name="uniquename">
                    <physicalAttribute name="uid"/>
                  </attribute>
                  <attribute name="loginid">
                    <physicalAttribute name="null"/>
                  </attribute>
                  <attribute name="email">
                    <physicalAttribute name="mail"/>
                  </attribute>
                  <attribute name="mobile">
                    <physicalAttribute name="mobile"/>
                  </attribute>
                  <attribute name="telephone">
                    <physicalAttribute name="telephonenumber"/>
                  </attribute>
                  <attribute name="department">
                    <physicalAttribute name="ou"/>
                  </attribute>
                  <attribute name="description">
                    <physicalAttribute name="description"/>
                  </attribute>
                  <attribute name="streetadress">
                    <physicalAttribute name="postaladdress"/>
                  </attribute>
                  <attribute name="pobox">
                    <physicalAttribute name="postofficebox"/>
                  </attribute>
                  <attribute name="preferredlanguage">
                    <physicalAttribute name="preferredlanguage"/>
                  </attribute>
                </attributes>
              </nameSpace>
            </nameSpaces>
          </principal>
          <principal type="group">
          </principal>
        </principals>
      </attributeMapping>
    </dataSources>
    regard's
    Dheerendra Shukla

  • LDAP user details not showing in Portal UME

    We have implemented kerberos single sign on using the kerberos xml datasource file and have the corporate LDAP as our UME source.
    However certain user details that are maintained in LDAP (such as department, street etc) are not being pulled through to the portal UME.
    We know the connection to the LDAP is OK as we can create new users and they appear in portal UME - its just that it seems to be missing several user attributes.
    Is this related to the settings in the xml file?
    And if so, what needs changing??
    thanks
    Simon.

    Hi Simon,
    all the attributes that are available in your LDAP can be made available in the UME via the dataSourceConfiguration. The default files does not include every attribute since these may vary from directory to directory. Please take a look at http://help.sap.com/saphelp_nw70/helpdata/en/b7/14d43f2dd44821e10000000a1550b0/frameset.htm
    and especially at: http://help.sap.com/saphelp_nw70/helpdata/en/44/7d188751626fb5e10000000a155369/content.htm and http://help.sap.com/saphelp_nw70/helpdata/en/1a/2bee408a63732ae10000000a155106/frameset.htm
    Hope this helps,
    Holger.

  • 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

Maybe you are looking for

  • Glance clock screensaver no longer moves around sc...

    After Lumina Black update download my at a glance clock no longer works as a screensaver. It doesn't move around the screen during standby. Will this cause screen burn-in? Why did the update change this?

  • Creation of Tech Master data with CRM IC Web Client

    Hi Experts, I have a query regarding creation of Technical master data via CRM IC Web client ( CRM7.0 & ECC6 for ISU) 1) If we are using CRM IC web Client then , how the creation of Technical Master Data is triggered from web client ? 2) Where the te

  • [Ai-CS4] How to add an  art board to existing document ?

    hi all, can anybody suggest me how to add a new artboard to existing document? I didn't find any ArtBoard Palette in CS4. But in CS5 it is given. thanks, D.A

  • 2007 iMac Crash.

    My 2007 iMac running SL froze up opening a website and slowly started shutting down windows until all that was left was a gray screen with the spinning startup dial showing.  I tried a hard reset but now all I have is a white screen with the Apple, t

  • Unable to login Yahoo email

    Hi I upgraded to 4.3.5 and I am unable to set up my Yahoo email. Keeps on saying "Server Unavailable". Thanks.