Get portal users

Hi,
We are developing an abap program that need to get a list of sap portal users. With the configuration we
have on our sap portal, the portal users aren't the same as R/3 users, therefore, portal users are independent of sap R/3 users.
Another option would be to get portal users from sap portal. It is possible?
Thank you very much.
Marc

Hi,
I think it would be easier to create a portal web service (you have all the API and the data at hand) and use it as a data source for Visual Composer. See this link for more info:
[Consuming Web Services Using Visual Composer|Consuming Web Services Using Visual Composer]
Hope that helps,
Romano

Similar Messages

  • 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

  • Unable to get Portal User in a Remote DB

    Hello,
    We are developing an application with Portal on Instance A and the application tables on Instance B. We have DB triggers on the application tables in B and would like to capture the Portal USER using wwctx_api.get_user. Have created a DB link and PUBLIC SYNONYM in B to access the package in A. However, when we call the function in B, we get the following error -
    ORA-00164: autonomous transaction disallowed within distributed transaction.
    Has anyone tried something similar?
    Thanks.

    Hi,
    If you submit your form to a procedure in the portal instance you can get the portal user inside of this procedure.
    you can then send this value to the table in the other instance.
    Regards
    Michael

  • 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

  • Get portal user logon details from abap web dynpro

    Hi all,
    I am developing an abap web dynpro which will be added via an iview to our ees/mss portal. What i need to know is how do i get the current user logon details in my web dynpro! i.e. if a user is loged into the portal using personnel number 111111 i need to be able to capture this value so that i can retrieve hr data for this personel number! any information would be much appreciated!
    Regards
    Mart

    Hi Mart,
    You can pass "iv_user=<User.LogonUid>" as application parameter in iview.
    add iv_user parameter in HANDLEDEFAULT method of default window of webdynpro component.
    that's it.
    when u run your webdynpro application, you can have value of portal logged on userid in iv_user.
    hope this will help u a lot.
    [Visit this thread|Re: WD4A: pass portal logged in userID to WebDynpro ABAP IView.]
    -Haresh Khandal

  • How can i get portal user creation date?

    Hi,
    In my web dynpro java application i must get user creation date.
    How can i get user creation date?
    Thanks.

    user.created()

  • How to get the portal user id into the web dynpro iview at runtime?

    Hi,
    Can any one let me know, How to display portal id and as well as backend SAP user id into Web Dynpro iview at runtime. I am using Adaptive RFC model in my web dynpro application.
    Raj.

    Raj:  check this thread. I think that will help you.
    Can i get Portal User's details in webdynpro??
    I had the same requirement and its works whit this solution.
    regards.

  • Portal Users name for auditing

    Hi,
    How can i get the name of portal users. Some one told me that there is some Portal_api through which i can get Portal user and then i can write custom code to insert that name for auditing purpose in tha database table. Can any one tell me what that Portal_api is? If any has done this before then can you expalin it with some example.
    Your help in this matter will be highly appreciated.

    muhammad
    I can't tell you the exact name of any particular api but I can tell you where a good place to look.
    If you are familiar with any of the MONITOR functions on the Oracle main page, there is one sub category for "chart by user". The contents for these are located under the navigator -> contents -> monitor -> chart by user.
    I haven't drilled down far enough to find any specific calls, but since documentation seems so lacking for these thints, I have to go find an example to take apart for the pieces I need.
    Hope this helps.
    Mike

  • 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

  • Get all users in Portal

    Hi all,
    I'd like to ask you for help with my Portal application.
    I need to retrieve all users in Portal.
    Now I'm using searchUsers method of UserFactory object. It returns to me all users, but it is very time-consuming operation for cca. 3500 users in result.
    There is another method how to get users
    UserFactory.getUniqueIDs()
    , but list of users is not complete (SIZE_LIMIT_EXCEEDED).
    Can anybody please advise me how to get all users in Portal (some standard way)? And faster?
    Many thanks for help,
    Pavel

    Hi,
    Refer to,
    How to retrieve all users in the portal with UME API
    May be helpful.
    Regards
    Srinivasan T

  • 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

  • How to get the total time spent by a Portal User for a given Date?

    Hello,
    We need to develop a Daily Audit Track Report that displays
    the Users logged into our System for a given day and the total login duration in Hours( should include all the
    Login-Logouts of a given date).
    While Portal30_SSO.WWSSO_AUDIT_LOG_TABLE$ can help me get the Users login to Portal for a day, there is no Login/Logout periods in it.
    Any help would be appreciated.
    Thanks
    Madhav

    You may want to consult with the view WWLOG_ACTIVITY_LOGS. Not sure how your environment is configured, but ours includes two WWLOG_ACTIVITY_LOG tables (1 & 2). These tables purge themselves based on your configuration. In other words, Portal will log activity in WWLOG_ACTIVITY_LOG1$ for a certain period of time, then switch to WWLOG_ACTIVITY_LOG2$ while purging the first one. You can specify the purge timetable in the Adminster tab of the Admin page (under Global Settings). If you just key on just 1 log table, you're logs may someday go blank.
    The actions used are 'login' and 'logout'. You can link the actions using the key_1 and key_2 columns of the view. From our current experience, Portal does not account for users that simply close the browser. In other words, we have not been able to get a log event for the action 'logout' for the same key_2 value if someone does this.

  • 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

  • Problem in getting Portal Mapped user and password in Web Dynpro iView

    I am developing a webdynpro iview.My app need to read mapped user and password form a system in Portal runtime.
    I used the following codes in my Web Dynpro java program:
         IWDClientUser user = WDClientUser.getCurrentUser();
         IUser iuser = user.getSAPUser();
         IUserMappingService iums = (IUserMappingService)WDPortalUtils.getServiceReference(IUserMappingService.KEY );
    //     IUserMappingService iums = (IUserMappingService)
    //     PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
         IUserMappingData iumd = iums.getMappingData (systemalias, iuser);
         Map map = new HashMap ();
         iumd.enrich(map);
         String userid = (String)map.get( "user" );
         String pwd = (String)map.get ("mappedpassword");
    I've add a sharing references in project properties,the value is "PORTAL:sap.com/com.sapportals.portal.prt.service.usermapping.IUserMappingService"
    But when I run the iview on my Portal, it goes wrong, the message is:
    com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application ''local/HomePage'' for startup. Reason= Clusterwide exception: Failed to start dependent library ''com.sapportals.portal.prt.service.usermapping.IUserMappingService'' of application ''local/HomePage''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
        at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1490)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:231)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:184)
        at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
        at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:117)
    Anybody can help me?And are there anyother methods can get mapped user and password of Portal systems in Web Dynpro JAVA.

    Hi Wayne,
          Did you added com.sap.security.api.jar to your webdynpro project. if not follow this steps.
    1. Right-click the project in Eclipse or SAP NetWeaver Developer Studio.
    2. Select Properties.
    3. Choose Java build path -> Libraries -> Add Variable -> Select variable WD_RUNTIME -> Extend -> com.sap.security -> lib -> com.sap.security.api.jar.
    I hope this should solve your problem.
    Regards, Suresh KB

  • Get the Portal User in Flex through webmodule project

    Hai All
    I have created the Flex project and then imported in NWDS through webmodule project . How do i get the portal log on user in Flex through webmodule project like what we will get in webdynpro java or webdynpro abap with the following code in init() method
    IWDClientUser wduser=WDClientUser.getCurrentUser();
    com.sap.security.api.IUser user=wduser.getSAPUser();
    What should i write in Flex init() method to get the portal log on user or is it possible to the portal log on user in flex?
    HOW  TO GET THE <User.LogonUid> from LOG ON PORTAL USER into FLEX
    Kindly help me.
    Regards
    Dhinakaran J
    Edited by: J Dheena on Sep 16, 2009 10:45 AM
    Edited by: J Dheena on Sep 16, 2009 2:41 PM
    Edited by: J Dheena on Sep 17, 2009 7:53 AM

    Hi,
    Have you been able to find this? Please let me know.
    Thanks,
    Manish

Maybe you are looking for

  • How do I download Photoshop CS5 on my Mac OS 10.7 Lion?

    I just paid for my photoshop CS5 extended, and am trying to install.  The Akamai Download manager says that it is not compatible with the Mac OS 10.7.  I know there is a way around this what do I do?

  • Trying to install 2 - Aironet 1300 Bridges... major problems

    I set up both ends of this bridge (about 1 mile apart) and I get an association, so I think I'm golden... well, I haven't been able to get the web gui ping/link test to work at all across them, so I upgraded to the 12.4 IOS on the main site, then wen

  • JRE won't cache some jar files.

    I have seen this behavior several times and cannot figure it out. For some reason, the JRE will not always cache jar files. I have tried to narrow down a pattern, but cannot. The closest pattern I can see is that on occasions when a jar is not cached

  • Migration to oracle from 4D

    Hi, We have got a task to migrate 4D database to oracle, any idea how to go about this task. Thanks in advance.

  • Dimension resizing not working | time sensitive!

    Using LR 4.0, MacBookPro Hi All, I really need some help. I am trying to export a jpg to Dimensions OR Width x Height:  1224x2048. I cropped the image in a 4x6 aspect ratio, portrait orientation. The jpg is not exporting to these dimensions. It'll gi