Retrieving correct user info

DimportletContext AsIPortletContext
portletContext = PortletContextFactory.CreatePortletContext(Request, Response)
DimportletUser AsIPortletUser
portletUser = portletContext.GetUser
empId = portletUser.GetUserID
Response.Write(empId)
I am using this code to retrieve user info. But here the employee id retrieved is not correct. I have set the information in the general information portlet and want to retrieve data from that portlet. How do I do that???

I'm not sure if this is what you need, but in remote portlets I get all user information using users' object manager and by querying an extended data. Here is an example (in VB)
DimobjectManager AsIObjectManager = ptContext.GetRemotePortalSession().GetObjectManager(ObjectClass.User)Dims AsString= CStr(objectManager.QuerySingleObject(123).GetValue(UserProperty.Name))Response.Write("Some User Info: "& s & "<br />")Dimxd AsIExtendedData = objectManager.QueryExtendedData(123)Dimnames AsIEnumerator = xd.GetNames()Whilenames.MoveNext() Dimname AsString= DirectCast(names.Current, String) Dimvalue AsObject= xd.GetValue(name) Response.Write(String.Format("Some User Info: {0} - {1}<br />", name, value))EndWhile
Here 123 is some user's object id.
An alternative would be to use the PRC search, but it's more convoluted.
Ruslan.

Similar Messages

  • How to retrieve  users info

    does anyone Knows how to retrieve the users info.
    for example if I want to create a LOV that contains the emails of all the users.
    thanks in advance.

    Retrieve them using and LDAP Search via DBMS_LDAP. Or you could cheat and search the ODS schema tables directly which contain all of the LDAP info. See the DS_ATTRSTORE table. Pull all attributes with a name like "mail"

  • Lost user info

    I seem to have lost my user info. I basically use the palm desktop software as my address book on my computer and don't use the hand held.  One day recently my user information seems to have been deleted.  I am suddenly back to 0 - there is no information and user is "none".  Is there a way to find it?  I have had he Palm since ? 2000 ?
    I got a new macbookpro in October and have been using the Palm desktop successfully until last week.  I have a "Palm" and  a "Palm 2" in my applications folder and more Palm folders in my documents folders from ? now or when the mac people transferred my info from the old to the new computer.  and I see more than one user "marcia reid marsted" which I what I have used.  I am afraid to open them as there are more than one. I am confused as to what to do and lots of info I don't want to lose! Help!
    Thanks 
    Post relates to: Palm m100

    If you are showing different users in the Palm desktop it will not hurt to switch to them to see if your data is under one of them. Sometimes what happens with Macs is the Palm Desktop loads up a 'None' user and there isn't any data under that user. Switching to the correct user resolves this in everycase.
    This is possibly caused by the Palm desktop loading up before the OS finishes loading.
    Post relates to: Treo 700w (Verizon)

  • GRC 5.3 CUP SP16 - User info not loading from LDAP into CUP

    Hello,
    We have multiple LDAPS that we needed to connect to our CUP system to authenticate the userids before a request can be created for them. And also to bring in Manager ID and manager email from LDAP as the first level approver for requests.
    My client hasn't maintained the actual LDAP userids, Manager and manager email fields correctly, so we utlized three other custom fields in LDAP and then did field mapping in CUP for those fields. But even when the connection to all the LDAPs is successful, there's no user information being pulled in from LDAP into CUP.  I noticed that when I use our backend SAP QA system as 'User Data Source' while using multiple LDAPS for 'User Detail Source Data' , it only reads data from SAP QA system SU01 area and even when I'm trying to create requests, no Manager info is being pulled from LDAPS for that user id. 
    SAP does not allow the use of multiple LDAPS for the configuration-->User Data Source , top option.  So, if a client has userids in multiple systems, it can only read from one data source.  But even when I temporarily assigned one active directory LDAP to the 'user data source' option, it stated, no records found. So, something is up that no data is being pulled from LDAPs even when the connection to those systems is successful. I just asked our AD guy to temporarily assign domain admin rights to that LDAP connection ID to see if it's access issue, and still I am not getting any LDAP data to read into GRC CUP.
    Anyone else has had this issue? Is there especial access that the LDAP connection id needs access in LDAP to be able to retreive data into GRC? Is there any jobs that need to be run to read LDAP data. I thought it should be live as the system is connected to LDAPs. I don't understand if the connection is successful, why the user info is not being pulled from there and even after the LDAP custom field mapping is done, those field values are not showing up on requests.
    We need the following to happen:
    1). Authenticate the custom userid field in LDAPs to ensure this user exist as an employee b4 request can be created for the user. For this I have configured the multiple LDAPS for the 'Authentication'. But it doesn't seem to confirm that option when creating a request for a user.
    2). The user details info source should bring in the custom manager id and manager email into the request to send the first level of approval via workflow to that manager. Since SAP doesn't give the option to define approvers per user group values in CUP, we had to actually map all the User Owner approvers this way since their direct managers are not aware of  what to request as the User owner approvers per user group are.  So, we added custom fields for Manager id and Manager EMail into LDAP to be ready automatically into the request when reading user id while creating request.
    I will greatly appreciate anyone's help on how they got the LDAP field values to be read into GRC CUP for request processing and what type of encripted access can a LDAP connection id have without assigning it complete domain admin rights on an open port 389 for LDAP and GRC CUP connection.
    Thanks and Regards,
    Alley

    Hi Alley,
    1). Authenticate the custom userid field in LDAPs to ensure this user exist as an employee b4 request can be created for the user. For this I have configured the multiple LDAPS for the 'Authentication'. But it doesn't seem to confirm that option when creating a request for a user.
    This is not possible. You can have only 1 LDAP. Why you want to authenticate the user in different sources?? CUP looks at only one user source, not many. The below wiki explains you the configuration part:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b089fb71-a3b7-2a10-64a2-8c77243b0664
    2). The user details info source should bring in the custom manager id and manager email into the request to send the first level of approval via workflow to that manager. Since SAP doesn't give the option to define approvers per user group values in CUP, we had to actually map all the User Owner approvers this way since their direct managers are not aware of what to request as the User owner approvers per user group are. So, we added custom fields for Manager id and Manager EMail into LDAP to be ready automatically into the request when reading user id while creating request.
    Based on user group is not possible. However, if you wish to maintain the Manager's Field, ensure that the CUP mapping is done correctly from the Configuration, Field Mapping, LDAP Mapping.
    While defining the workflow, take the approver determinator as Manager. This will route the request to the users manager. Also, ensure that LDAP is the source in all the confiuration areas in CUP.
    Check note 1228996 for more information.
    Hope this helps!!
    Regards,
    Raghu

  • Retrieving personal user certificate for secure webservice

    All,
    I am currently creating a WLW 8.1 webservice that will interact with a non-browser client. The reason I mention non-browser is that in order to secure this webservice and also have it function correctly I need to retrieve a user's personal certificate. Our team has done this for web-content in the past with simple retrieval via the browser, but in this case the client is non-configurable and will be talking directly with my webservice.
    My question is: is it possible to retrieve the user's certificate via a webservice? The certificate is not only used for security validation, but their credentials are also used to validate them in other programs on the back-end of the webservice. This allows personalized content based on the certificate.
    Thanks for any help you can provide. I know that was long winded and semi-complicated so if any clarification is required please ask.
    Thanks,
    Sam

    So in essence, then, Credential Roaming is exactly what we need.
    yes.
    > but if the cert needs to be in the Personal store PRIOR to the user being authenticated on 802.1x
    this is one pitfall of this scenario. You need to have locally installed certificates prior to connecting to wireless network. This means, that you cannot initially connect to wireless prior logging on to domain by using wired network. Once certificates
    are cached, you can connect to wireless networks with cached certificates.
    Vadims Podāns, aka PowerShell CryptoGuy
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell File Checksum Integrity Verifier tool.

  • Retrieving Webcenter User Profile information from portlet programmaticaly

    Hi guys,
    I'm triing to retrieve WC user profile information programmatically from a jsr 286 portlet but:
    ADFContext.getCurrent().getSecurityContext().getUserName(); ----> always return anonymous
    ADFContext.getCurrent().getSecurityContext().isAuthenticated() ----> always return false
    (i'm obviously authenticated on webcenter with my profile)
    Anyone knows what the problem is or how to retrieve webcenter user profile information from within a portlet?
    Thank you.

    thank you for the reply, but that issue seems not resolved.
    I hope there are other ways to retrieve user information.
    Anyone knows if there is a way to retrieve programmatically user profile from a jsr286 portlet inside webcenter?
    Edit:
    i've tried passing this parameter to the portlet : #{webCenterProfile[securityContext.userName].userName}
    I can retrieve from the request object and the username is correct, the problem is that i need the whole profile (i have some logic that are dependant on user email, lastname etc), and adding all profile attributes as parameter seems to me not the correct solution.
    I need a way to access the user profile directly from the portlet.
    Edited by: ZOLTAN on Jun 22, 2011 5:56 AM

  • Mail Icon from STart menu has wrong user info

    we set up the new 400 pavilion slimline pc, and see an incorrect user name in the start menu.  first question is how to change that.  next, when we click on the Mail icon, a different user name appears (what appears is username and password request info that was sent from my work pc to this home pc as a means of testing and practise for the homeowner to access mail)  it's like the home pc took over my work username info and installed it in the Mail icon set up!
    in sum, how can we change what first appears as an incorrect user name, and set up the correct user name on the Mail icon prompt.     the home owner can access and get mail, so that works fine but we added the comcast account link into 'favorites' folder as a means to connect into her mail.  we naturally want to make this easier by just selecting the Mail icon off the Start menu.  thanks! tc17

    Hello tc17,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are looking for chagne the profile username as well as the mail username on your HP 400 Pavilion Slimline computer. I would be happy to assist you, but first I would encourage you to post which operating system you are using. And whether your operating system is 32-bit or 64-bit as with this I can provide you with accurate information.
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please re-post with the requested information and I would be happy to provide you with assistance. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • There was an error retrieving the user management project list

    Hi All
    I created the application profile successfully and try to create the new application but the error message was displayed like " *There was an error retrieving the user management project list . please verify that a project exists"* i didn't give the domain name, i went admin login......
    Regards By
    Nagaraj

    Hi Varun,
    i started services correct order only, but i am using VMware
    Regards
    Nagarajan

  • Get user info step

    Hello I to know how work the step Get user Info.
    anyone can help me?

    If you are sending XML payloads to CAD, you are probably using IPC, correct?
    The best way you can handle this then is have the CAD login action "register" the login with your IPC server.
    Here's a video I made, showing how CAD can talk to an IPC server (written in ruby).
    http://www.youtube.com/watch?v=88E-z0ShlFE
    Here is a forum thread where I gave away the code:
    https://supportforums.cisco.com/message/3041806#3041806

  • How to retrieve security question info...

    How to retrieve security question info if I have deleted the original recovery email. I go to change password, get stopped at security questionnaire, I do not have the recovery email. Is there a way I can reset the "security question info" recovery email?

    1. See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    2. Here are two different but direct methods:
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for support
            and service.
    3. For other queries about Apple ID see Frequently asked questions about Apple ID.
    4. Rescue email address and how to reset Apple ID security questions

  • PSE9 on Win7. "Gathering User Info..."

    Just installed PSE 9. Installation was successful (on Windows 7 x64). Detected that I'd had PSE 8 before, upgraded my catalog and informed me it was going to migrate all photo tag info. Got into Organizer OK.  I exited after awhile.
    Now when I start PSE 9, all I get is the Welcome screen with "Gathering User Info...".   I left it in this state for 15 minutes.  It was not consuming any CPU cycles.  Rebooted my PC.  Restarted PSE 9.  Still just stays on "Gathering User Info...".
    Any ideas how to fix this?  I'm thinking I may have to try re-install...
    Thanks

    Ankush,
    The last thing that I did last night was
    1. uninstall PSE9
    2. uninstall Adobe Air, Adobe Flash Player IE, Adobe Flash Player
    3. install latest Adobe Air and install the lastest Flash Players
    4. installed PSE9.  I just let it run and the installation completed succesfully (when I checked this morning).
    So it looks like uninstalling and reinstalling those other Adobe products allowed the install to complete (instead of failing at the "Installing required Sharing Technlogies" step).
    So now I have PSE9 installed.
    1. When I clicked the desktop icon to start it, I get the Welcome Screen with the "Gathering User Info..."
    2. When I click on Organize, it immediately goes into my Win 7 Taskbar and cannot be resurrected from there.  It is still there. I'm not sure if PSE9 is doing anything.
    3. Then I run the PhotoshopElementsEditor.exe (from its directory).  Editor pops up.  It has me signed in.  I Sign Out. I sign back in successfully to my account.
    I then wonder if, for some reason Organizer has decided to open up somewhere off my screens.  I find that that is the case!  I drag it back onto onto one of my three screens.
    And it's all working
    So I had multiple weird things on this installation:
    a. "Gathering User Info..." which never went away
    b. Multiple PSE9 installations that failed until I reinstalled Air and Flash Players.
    c. Had to run PhotoshopElementsEditor.exe from the Adobe directory so that I could get the Adobe sign in dialog
    c. Organizer deciding to open up off the screen.
    But, as I said, it's working now.   I hope that others don't have to attempt as many installs and jump through all these hoops like I did...
    I do wonder why the Organizer icon is just showing as a black and white image and the Editor icon is a colored "PSE" image.  This is what the two look like in my Win7 Taskbar.  Is that the correct Organizer icon?
    . . . . Brian

  • 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

  • How can I export to Text and/or CSV format and get correct page info?

    I am using CRVS2010 to upgrade an application from CRXI RDC to .Net.  When at runtime I generate the report and export to Text or CharacterSeparatedValues my page footers show Page -1 of 1.  Using the CRXI RDC, I see the correct page info in the footers.
    When I export to Text, I get the Page -1 of 1 for every page.  If I set LinesPerPage to zero, then I get it all on one page, which still has Page -1 of 1 at the end.
    If I export to CSV, I get Page -1 of 1 for every line.  If I use the viewer to review the report at runtime, and export from there, I cannot export as Text so I have no comparison.  However, the Export to CSV from the Viewer as Page -1 of 1for every entry just as my export does.
    What do I need to do to get the correct line info?  What is that is different from CRXI RDC and CRVS2010 .net that would impact this behavior?

    Yes, I am using SP2 for VS 2010 and I'm using the Page N of M formula in the page footer.  While my export code was not quite as simple as yours, I did it both ways in my test program with the same results.  A one page report whose footer says Page -1 of 1.
    Here's the relative code snippet:
    #if 0
        CrystalDecisions::Shared::ExportOptions ^exportOptions = gcnew CrystalDecisions::Shared::ExportOptions();
        exportOptions->ExportDestinationType = CrystalDecisions::Shared::ExportDestinationType::DiskFile;
        exportOptions->ExportFormatType = CrystalDecisions::Shared::ExportFormatType::Text;
        TextFormatOptions ^textFormatOptions = exportOptions->CreateTextFormatOptions();
        textFormatOptions->LinesPerPage = 0;
        textFormatOptions->CharactersPerInch = 11;
        exportOptions->FormatOptions = textFormatOptions;
         CrystalDecisions::Shared::DiskFileDestinationOptions ^diskFileDestinationOptions = exportOptions->CreateDiskFileDestinationOptions();
         diskFileDestinationOptions->DiskFileName = gcnew System::String("c:\temp\test.txt");
         exportOptions->DestinationOptions = diskFileDestinationOptions;
        thisReport.Export(exportOptions);
    #else
        thisReport.ExportToDisk(CrystalDecisions::Shared::ExportFormatType::Text, gcnew System::String("c:\temp\test.txt"));
    #endif
    Edited by: nlDevotie on Jan 9, 2012 11:59 PM

  • How can I login and retrieve my user file from the trash?

    I was trying to find out where all my HD had gone, which a did using ‘What Size’.
    I found what looked like an old backup file so I put the file in the trash.
    It turns out that the file was my user file. So now I can’t login to as the user.
    How can I login and retrieve my user file from the trash?

    The Digital Editions forum is here, in case this is what you are talking about:
    http://forums.adobe.com/community/adobe_digital_editions
    If you are not, I apologize for the misunderstanding.

  • Help! I synced my iCal from my old iPhone to iCloud. It worked great. I've done this because I'm switching to a Samsung phone and need to sync my iCal to my Google calendar. In attempting to do so today, my iCal is empty. How can I retrieve my iCal info??

    Help! I synced my iCal from my old iPhone to iCloud. It worked great. I've done this because I'm switching to a Samsung phone and need to sync my iCal to my Google calendar. In attempting to do so today, my iCal is empty. How can I retrieve my iCal info??

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

Maybe you are looking for