Portal User's  Personal Details

Hello,
Im trying to get logged on user's Personal Details, and
show them in my portlet.
Im using PDK July on Portal Release 9.0.2.3.0 running on Linux.
I used ProviderUser object's methods in order to get Personal Details.
Using API calls i can get only
portal username, userqualifiedname and usertostring values.
All the other methods return null.
Any suggestions for this problem
Regards.
I use following code in my jsp page.
import="oracle.portal.provider.v2.*"
PortletRenderRequest pReq = (PortletRenderRequest)
request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
// These methods return null
String userFullName = pReq.getUser().getFullName();
String userDisplayName = pReq.getUser().getDisplayName();
String userLastName = pReq.getUser().getLastName();
String userFirstName = pReq.getUser().getFirstName();
String userDN = pReq.getUser().getUserDN();
String userEmail = m_ProviderUser.getEmail();
//These methods work fine
String userName = pReq.getUser().getName();
String userToString = m_ProviderUser.toString();
String userQualifiedName = pReq.getUser().getQualifiedName();

Hi,
I think that the user details are read from the OID by Portal. So if they do not exist on the OID, obviously Portal doesn't have them & so you are getting null values for the other attributes. Username being a mandatory parameter, you could retrieve its value. So just cross check if user profiles have been added & all details that you want are available for the logged in user.
You could use the seeded portlets in the "Admistrator" tab to view the user profiles.
Regards,
Abhinav

Similar Messages

  • How to fetch Portal Users data ? (Including Mapping details)

    Hi all,
    I want to retrieve Portal users data with the detail of its mapping (i.e. if the user is mapped or not with backend user? and if yes, to which backend user?).
    Thanks,
    Tejas

    Thanks for the reply Nadav.
    But what I want is the complete list of all the users, the reason being there are more than 2000 users on Portal and going for this one by one mapping checking is not really feasible time and effort wise.
    So is there any way how can I get the users data from UME or LDAP? as I have both kinds of users.
    Please guide.
    Thanks and Regards.
    Tejas

  • 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

  • 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

  • Portal user details

    HI
    I need to develop a web dynpro application which gives the details of the portal user details who logs into portal
    Can anyone provide me the code how to fetch the details of the users who logs into portal
    thanks in advance

    Hi,
    Make sure that your WebDynpro Applications Authentication property is set to True.
    To get Portal User Details you can use the following UME Api's
    try
    IWDClientUser user = WDClientUser.getLoggedInClientUser();
    IUser loggedInUser = user.getSAPUser();
    catch(UMException ume)
    //do something
    this Iuser objects holds all the Properties of Portal User Except its Password.
    and You can retrieve it like this
    loggedInUser.getFullName();
    if you know the Logon id of Portal User you can Also get the IUser object like this:--
    IUser user = UMFactory.getUserByLogonId("Administrator");
    To use UME APIS in Webdynpro you have to refer com.sap.security.api.jar in the Build path of your WebDynpro Application.
    If You Are Using NWDI then you have to use the com.sap.security.api.sda lib Dc available in NWDI for Compilation in WD DC
    Hope this Help.
    Regards,
    Siddharth

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

  • Redirect portal users to accept "terms & conditions" ...

    Here is the requirement ..
    When the users logging in first time i need them redirected to a page to accept "terms and conditions" , next time the page should not be appeared.
    Only the "terms and conditions" page should be appeared for those who are not accepted before.
    Please help me if anyone knows the solution ...
    Thanks in advance
    MMK

    Hello Eric, First off I'm very new to SAP, I've been a Basis Admin now for about 6 months...  I have had the pleasure of joining a team at the beginning of an upgrade.
    An issue Iu2019m trying to resolve is a payroll issue. Apparently in 4.7 when a user would login to the portal and view their personal data it would not u201CLocku201D their user data. 
    But this appears not to be true in ECC6/Netweaver 7.0.  When our HR does payroll, if a user is logged in to the portal, and viewing their personal data the u201CPayroll Runu201D will not complete.
    So what I would like to do is implement your solution for the Redirect portal user to the u201CTerms & Conditionsu201D page, and tweak-it to forward the users to a u201CWebsite is downu201D page.
    Here is my thinking. When a user logs-in, check either a z-table or some other table that holds some value.  If the value is True then do nothing and continue. If the value is False, then Re-direct the user to a u201CWebsite Downu201D page with just an OK button, that when clicked will call the Logoff function. 
    Also HR would be able to run a job that would set the value to either True or False so they would be able to take the portal u201COff Lineu201D when they choose..
    My question isu2026 Can you give me detailed information on how to accomplish this?
    Thanks
    Steve

  • EDA Error while trying to access the personal details.

    Hi All,
    A new user(employee) is assigned with EDA responsibility to view/update his personal details and bank details.
    The user is able to view & update the bank details. But he is not able to open the personal details page. He is getting the following error while trying to access the personal detail link.
    HR_BASIC_DETAILS_WEB.GET_READ_ONLY_INFORAMTION: ORA-20002: 3123: Duplicate attribute 'DISPLAY_MARITAL_STATUS' could not be created for item 'HRSSA/28012061'.
    All users except the new user, dont have this issue.
    Oracle Application Version : 11.5.9
    Could someone help me on this.

    Hi Girish,
    Do you find out the solution to this issue? We having a similar issue with our Enterprise Portal using Apache and Siteminder Agent?

  • Accessing Portal User profile info from report

    Once the user logs into portal, I would like to access some of the user profile information (personal or organizational details). I need to find the stored value of the employee number, e_mail and department. This is needed to restrict the information that will be returned to the user in portal reports.
    ie. Access the portal users department and only show them information fo that specific department. If I can access I can store the value in a session variable or cookie.

    Just have a look at <portal_schema>.wwsec_person$
    There is also an API <portal_schema>.wwctx_api.get_user to get the user currently logged in.
    Thanx,
    Chetan.

  • Portal user issue - all users are viewing data of one particluar user...

    Hi all,
    we are implementing ess 1.0 on EP7.0 and using ecc6.0
    Now, while creating Jco connection we had provided user id/pwd of a user in portal and assigned that user to an employee in backend r3 (say abc).(we followed the famous pdf available on sdn: Configuring the Business Package for Employee Self-Service (ESS) u2013 mySAP ERP 2004 by an HCL employee)
    Now the Problem is:
    whenever an xyz user logs in to portal with ess role, and views any data...say perosnal information, telephone no., address, etc than that xyz user sees all this data of the employee(abc) to whom we had mapped our user which was used while creating Jco connections.
    infact if xyz tries to edit any data than it gets reflected to abc.
    to genralise: any portal user with ess role logs in to portal is viewing/editing data of abc employee...which normally should not be the case.
    plz try and help me resolve this issue...
    Regards,
    JJ

    Hi!
    You have to configre your JCo Destionations to use Portal SSO.
    Additionally in your HR Backend you have to maintain (I think it is) Info type 0105 (sub-type 001) and assign every personal number the appropriate UserID so that every user sees his own data.
    A technical user is only needed for the JCo destinations dealing with metadata. The "real" JCo destinations performing RFC calls to the HR Backend can be configured to use Portal SSO.
    For more details refer to http://help.sap.com/saphelp_nw70/helpdata/EN/44/45a04028f40160e10000000a1550b0/content.htm
    Hope this helps!
    Regards,
    Volker

  • 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

  • Read Portal User ID in BW report to filter records

    Hi,
    I need to filter my records in BW report based on the
    business partner who logs into Portal.
    (BW report is getting called thur IView in Portal)
    Is there any way i can fetch the Portal User id
    during the execution of BW report? so then i can filter
    records by writing code in user exit.
    I tried using variable sy-uname, but it populates
    the BW user id and not portal user id.
    Please reply if anybody knows solution to this query.
    Thnx in advance.

    Abhijit ,
    My understanding:
    You need to filter the query by the Business Partner ID and not by User name and Business Partner number and BW User ID are both different.
    If you want to filter by User name:
    Why don't you try using SSO through EP and that way you would get the ID of the person logged in.
    If you are using user mapping:
    Or what you could do is maintain the mapping in an info object/table in BW and query against the same.
    If you are using Business Partner:
    Populate the business partner master which will have the user name attached and that way you would be able to get the Business partner ID.
    Arun

  • 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

  • Synchronize portal users with R/3 automatically

    I am trying to find out more about how the portal will automatically create an user and assign it its relavent roles once the user has been created in R/3. I understand this is possible with ECC6? i have searched but cant seem to find what i am looking for.
    Any links/advice with be much appreciated.

    Hi,
    You can use the ABAP server as the data store for portal users. So all the user ids, roles & groups in the ERP system is available in portal.
    Please check the following link & sublinks for detail info.
    http://help.sap.com/saphelp_nw70/helpdata/en/49/9dd53f779c4e21e10000000a1550b0/frameset.htm
    Regards,
    Abhishek

Maybe you are looking for

  • How can I open a PDF in iBooks on iPhone 5s?

    I have PDFs in iBooks. When I try to open them it says I should open them with Adobe Reader. I downloaded Adobe Reader but can't seem to get the PDFs to open with it. I found a previous thread saying that you can't use Adobe Reader with iBooks, but t

  • Error "ASSIGN_SUBSTRING_NOT_ALLOWED" doing archiving

    Hi  everybody I have an ECC 6.0 SAP System and I m trying to implement an archiving process for the MM_MATBEL object. I am using the SARA transacction --> Basis Customizing --> Cross-Client File Names/Paths I defined a logical file path definition "A

  • Downloading ALV Grid (using objects) output to Excel

    Hi all, I'm using objects for ALV Grid. I have few other fields (few are above and few are below the custom control) on screen other than custom control. I want to download the entire screen to excel (including other fields). But using Export option

  • With Grep SUPERSCRİPT apply character style

    I want the script with contained in document SUPERSCRIPT apply a character style app.findGrepPreferences = app.changeGrepPreferences = null;       app.findGrepPreferences.findWhat = Position.SUPERSCRIPT; //?? //app.changeGrepPreferences.changeTo = ""

  • No "New Video Recording" option

    I just unlocked my Pro for Windows version. When I click on "File" there is no option for creating a new video, only a new audio. Does anyone know what this is about? The product is worthless to me if I cannot create video with it. Thanks ...