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

Similar Messages

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

  • What is the name of the Portal user detail Table?

    Hi.
    I using Oracle Portal9iAS 9.0.2.1
    1)When administrator register a new user, what is the table that the data is being stored?
    2)When a user want to login in the Portal, he/she will be directed to the SSO Login Page?..
    -What is the name of the page and where is it been stored?
    -I want to customize it to add my company's logo..how can i do that?
    Thanks.

    Rushdan,
    User provisioning information in 9.0.2 is not stored in the portal environment. All user/group information is held in OID only ACL information is held in the Portal repository itself.
    There is instructions on creating custom login pages both on Portalcenter.oracle.com and (for java examples) in th e9iAS security guide.

  • 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

  • Retrieving User details

    Hi,
    I am using the wwsec_api.person_info function passing in a user id to retrieve a portal users details. I am able to retrieve details such as first name, last name , email address. I need to get the 'Department' that the user is in but can't seem to retrieve this. An ideas on how to do this?
    Also within portal, if i edit a users details and put entries into telephone, department, first name etc and then look in the view wwsec_person, none of these details are recorded against the specific user. Is this normal?
    Any help would be appriecated.

    These are all stored within the LDAP. You can use dbms_ldap calls to retrieve them, or select from the ODS.DS_ATTRSTORE table directly where attname is the attribute you are looking for.

  • 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

  • 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

  • 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

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

  • 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

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

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

Maybe you are looking for

  • Why can't i logg in to my itunes account on my iphone 5

    Is anyone else having issues with logging in to their Itunes account on the Iphone 5? I have entered my user name and password several times and it will not allow me to logg in. HELP

  • Will Other Brand Monitors work with MacPro?

    Hi, Just got a new Mac Pro Desktop 8-core only to find out my old Apple Studio Display 17" won't work without a $100 adapter. We're thinking of just buying a new monitor instead. My question is will other brands now work direclty with the new Macs -

  • Where do I suppress Bex Query Message

    Experts - My users are getting an error message on their Bex Query "Characteristic xxxxx was changed in InfoCube xxxxx. Adjust the query". I searched SDN and I found out that if you go to TCODE RSRT and then TCODE SUPPR_ALL, you can then suppress the

  • From where can i download jsp-2.0.jar???

    I want to run a MyFaces Application on Weblogic 8.1 SP6. When adding an dynamic expression (e. g. #{ msg.application } in <h:outputText value="#{ msg.application }"></h:outputText>), i get the following exception: javax.faces.FacesException: ServletE

  • Reinstall of DisplayLink Core fails

    I have a dynadock PA3541U-2PRP dynadock VGA. I have had to reinstall the dynalink software and got the latest from the download site 2.3c. When the video driver tries to install it comes back with a message saying it cannot find 'DisplayLinkCore.msi'