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

Similar Messages

  • User Profile information

    I have recently installed the 8iLite on a win2000 pro desktop. WHne I log in as scott on POLITE, I get the standard:
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    Ok, so I log into the POLITE as system and run this command:
    @PUPBLD
    It creates some synonyms.
    I log back in as scott and still get that message. Is this a problem and how can I resolve it?
    null

    Try these
    Login as system
    Query dba_synonyms
    product_user_profile synonym should be a public synonym
    select from product_user_profile
    delete entries for scott.
    null

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

  • How to display user profile information in master page header

    I am trying to display user profile info like following in custom master page.
    I have just added a html code for displaying this info.
    Now, please tell me how could i achieve this
    I am doing this in sharepoint 2013 on-premise.

    see below is example for javascript and userprofile information
    <script type="text/javascript">//<![CDATA[
    $(document).ready(function
    var currentUser;
    // Ensure that the SP.js is loaded
    if (SP.ClientContext
    != null)
    SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser,
    'SP.js');
    else
    SP.SOD.executeFunc('sp.js',
    null, getCurrentUser);
    function getCurrentUser()
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    currentUser = web.get_currentUser();
    context.load(currentUser);
    context.executeQueryAsync(onSuccessMethod, onRequestFail);
    function onSuccessMethod(sender, args)
    var account = currentUser.get_title();
    var currentUserAccount = account.substring(account.indexOf("|")
    + 1);
    var currentUserAccountUnderScore = currentUserAccount.toLowerCase().replace(/\s/g,
    //alert(currentUserAccount);
    $("#username").text(currentUserAccount);
    $("#ProfileImage").attr("src",
    "https://mydomain-my.sharepoint.com/User%20Photos/Profile%20Pictures/"
    + currentUserAccountUnderScore +
    "_mydomain_onmicrosoft_com_MThumb.jpg");
    $("#ProfileImage").attr("alt", currentUserAccount
    + " User Profile Image");
    $("#ProfileImage").attr("class",
    "ss-profile-image");
    //This function runs if the executeQueryAsync call fails.
    function onRequestFail(sender, args)
    alert('request failed' + args.get_message()
    + '\n' + args.get_stackTrace());
    $("#ProfileImage").attr("src",
    "https://mydomain.sharepoint.com/SiteAssets/userImageDefault.jpg");
    //]]>
    </script>
    -Nilesh

  • Retrieve all user id's from LDAP directory and populate in Oracle table.

    Guys,
    We've implemented LDAP authentication functionality in our application using Oracle's dbms_ldap package objects.
    Now,Is there any way that I can retrieve all user ids from the LDAP directory and store in an Oracle table?
    The distinguished name of authorized user as it appears in our LDAP directory is below:
    dn=uid=ab0472,ou=people,ou=xyz,o=world.
    Now I need to fetch all users uid's from the LDAP directory and populate in an Oracle table.Can somone help me with thoughts.
    Thanks,
    Bhagat

    Have a look at attachments API, since this also does the same thing except that it puts the file in fnd_lobs instead of the custom table.
    Thanks
    Tapash

  • Retrieve all users with attributes from AD

    hi,
    i'd like to retrieve all users with their attributes from AD. I can connect to AD and i 'm able to retrieve entries from a group with the member class given in this forum.
    But my problem is i would like to retrieve users directly from the Users container
    thanx for help

    i solved one part of my problem.
    But, now i have to get all attributes for each users and i couldn't find them. The getattributes method doesn't return anything (i 'd like to retrieve the first name, last name, adress ...)
    thanx for help

  • Cleanup User Profiles excluded from import

    Hey guys!
    since weeks I got messed up with user profiles in MOSS2010.
    Initially we have setup AD synchroization from whole AD. Some tests were done and numerous OUs were excluded from the sync connection.
    Hence thousands of profiles should be deleted from SharePoint, but still kept in AD.
    SharePoint has moved them to "Profiles Missing from Import" which was a first milestone. However, we use the profiles in organization webparts and the "should be-" deleted profiles still appear in those webparts.
    We were waiting more than 14 days for automatical deletion which doesn´t took any affect.
    MySite cleanup Job and
    User Profile Change Cleanup Job have been executed by schedule and manualla - accounts still exist
    Full sync has been executed - accounts still exist.
    I have executed the well known PowerShell script to delete NonImportetObjects
    Set-SPProfileServiceApplication $upa -GetNonImportedObjects $true
    But I get only five profiles as result. On SharePoint CA I have thousands of profiles on "Profiles Missing from Import". So I guess the execution of
    Set-SPProfileServiceApplication $upa -PurgeNonImportedObjects $true
    wont help me out in this case.
    Due to the large amount of profiles, a manual deletion is not a suitable solution.
    Do you have any idea how to fix this?

    Just one quick check, did you start user Profile service after OUs exclusion in Sync connection ? if not then please restart the service and perform Full Sync.
    Run below script on SQL server to check all users marked for deletion, these users will be picked up by "MY Site clean up job" for deletion:
    1. Script to get list of all user which are inactive and marked in "Profile missing", update profile DB Name :
    SELECT *  FROM [User Profile Service Application_ProfileDB_02f7d99cc26542978de8627838c980b8].[dbo].[UserProfile_Full] with (nolock)  where bDeleted = 1GO
    2. Script to check if sites marked as deletion, update profile DB name;
    SELECT *  FROM [User Profile Service Application_ProfileDB_02f7d99cc26542978de8627838c980b8].[dbo].[MySiteDeletionStatus]GO
    Thanks, ShankarSingh

  • We are using SharePoint 2010 server with service pack 1 want to remove/delete old user profiles & site from server

    Hi Team,
    We are using SharePoint 2010 server with service pack 1, we want to remove/delete old user profiles, access & site from server
    is there any script or feature available using that we can only remove dactivated/deleted/old user profiles, access & site.
    Thanks
    NPratik

    Take a look at Metalogix ControlPoint, which will compare user accounts on SharePoint to Active Directory and remove accounts that no longer exist in AD (or are disabled).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Not reading profile information from cookies..?

    Hi All,
    i' working on soflogin. When i loggedin to site, it is sending 3 cookies to browser, each for sessionId, profileId, and hashKe. Upto here it is working well. But , when i restart the browser without loggin out, it is not able to pick the cookies from browser, resulting in failure of the soft login. I also wrote the code to consider cookies for softlogin as follows,
    <dsp:droplet name="Compare">
              <dsp:param name="obj1" bean="Profile.securityStatus" />
              <dsp:param name="obj2" bean="PropertyManager.securityStatusCookie" />
              <dsp:oparam name="lessthan">
                   <!-- New user or unrecognized member -->
                   <c:set var="showLoginForm" value="true" scope="request" />
                   <c:set var="useDefaultProfileValues" value="false" scope="request" />
              </dsp:oparam>
              <dsp:oparam name="equal">
                   <!-- User auto-logged in with cookie -->
                   <c:set var="showLoginForm" value="true" scope="request" />
                   <c:set var="useDefaultProfileValues" value="true" scope="request" />
              </dsp:oparam>
              <dsp:oparam name="greaterthan">
                   <!-- User logged in with login/password -->
                   <c:set var="showLoginForm" value="false" scope="request" />
              </dsp:oparam>
         </dsp:droplet>
    And based on the value of showLoginForm variable , i'm displaying the loginPage.. But it is still showing the login page with empty fields instead of login with previous loggedin user login value.. (expected result)
    Thanks,
    VishnuVardhan

    Before reading these values, check in the browser if you have the cookies present before and after restart.
    Otherwise you need to look at the configurations to set the cookie.
    Peace
    Shaik

  • How to change the font style for user profile information in My Profile page?

    Hello,
    In my profile page, user information is getting display as below:
    Name
    Title
    Department --> Would you please let me know how can I change style for Department ( Information Technologies) Attribute in this section ?
    Thanks and Regards,
    Dipti Chhatrapati

    Hi Romeo,
    I got your point and class I require to apply is as below:
    .ms-contactcardtext3 {
        font-family:
    Arial !important;
        font-style: italic !important;
    Thank you for your trick :) 
    But its getting apply to title as well as to Department - as above class is same for both fields , while I require to change the style only for the department.
    Any suggestions ? I have changed the same using Designer which works as per the need , however - I dont want to use SPD Tool !!!
    Bottom line : I Require different font style in Title and Department without use of SPD.
    Any suggestions/idea ?
    Thanks and Regards,
    Dipti Chhatrapati

  • "Unable to access User Principal information from the System" error when trying to launch Kerberos Config. Mgr. on Win7 laptop

    I am not able to launch the Kerberos Configuration Manager due to the above error.
    Any thoughts?
    Thank you.
    Credit Cop

    Hi,
    Are you trying to connect to the remote machine?
    There are a few limitations of Kerberos Configuration Manager tool.
    The tool will only work in a single domain scenario.  So, if you have the service installed in Domain A, but want to use a Service Account from Domain B, we won’t be able to discover and correct the issue appropriately.
    Here is thread with the same error message:
    http://social.msdn.microsoft.com/Forums/en-US/cd68c751-abe2-433a-a1ea-1951be24f46b/kerberos-configuration-manager-for-sql-server-access-of-system-information-failed?forum=sqltools
    Reference:
    http://blogs.msdn.com/b/psssql/archive/2013/11/22/kerberos-configuration-manager-updated-for-reporting-services.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How do I modify my user profile information?

    When I first bought and set up my Mac two years ago, I filled out information such as my first and last name, company name, address, etc. My company name and address has since changed and I want to modify my Mac's profile accordingly. How can I do so?

    It's pretty nifty, especially if you use Safari's Autofill feature - it fills in information you supplied in Address Book.
    Yang

  • I need a vi for LabView 5.1.2 that when run will retrieve all the channel information from Max

    I know there is a vi example for 6.1 to do this exact thing and create a text file as well. But I do not have 6.1 on the machine I want to extract the data from. Is there a similar program for 5.1.2 that has been created that someone can share with me?
    Thanks
    Bill

    Hi Bill,
    I have taken the example you described from LabVIEW 6i and saved it for the previous version of 5.1.  I know there are a few errors that you may have to correct to get it to run correctly. 
    Thanks,
    Laura
    Attachments:
    Virtual_Channel_Info_Grabber.vi ‏57 KB

  • User Profile email address not updated on Site Collection User Information

    Hi All,
    Ok here we go....SharePoint 2007 with SSP profile sync not enabled, however I have a few profiles I need to update (email address).  This has been completed by editing the user profile in SSP, but when viewing the information via Site Collection >
    People & Groups > User Information "Work E-mail" is still showing the old one.
    All alerts are still being sent to the old email address, SSP DB UserProfile_Full shows the new email address as per SSP.
    Anyone know where else user profile emails are stored which is used by Exchange?
    Many Thanks, Roger

    As per the following post from GuYuming
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/319d5b0e-336a-4815-9ee5-5d1685db867f/how-to-send-sharepoint-alerts-to-users-on-different-domain?forum=sharepointadminlegacy
    After the email address in SharePoint user profile is updated to [email protected], you have to wait until
    they are synchronized into the user information list in SharePoint site collections so that alert can be sent to that address. For detail, please read http://vspug.com/mirjam/2009/06/17/user-profiles-and-the-user-information-list-or-userinfo-table/ and http://blogs.technet.com/paulpaa/archive/2009/10/01/user-profile-information-not-updated-on-site-collection-s-people-and-group.aspx
    --Cheers

  • Failed to Upgrade User Profile from Sharepoint 2010 to Sharepoint 2013

    I have upgraded the MMS service successfully. I tried to upgrade the user profile service from SharePoint 2010 to SharePoint 2013 farm using PowerShell script.
    $applicationPool = New-SPServiceApplicationPool -Name "User Profile App Pool" -Account "Domain\accountname"
    $upa = New-SPProfileServiceApplication -Name 'User Profile Service Application' -ApplicationPool $applicationPool -ProfileDBName 'SharePoint_ProfileDB' -SocialDBName 'SharePoint_SocialDB' -ProfileSyncDBName 'SharePoint_SyncDB'
    Error in powersehell
    New-SPProfileServiceApplication : Action 15.0.42.0 of
    Microsoft.Office.Server.Upgrade.ProfileDatabaseSequence failed.
    At line:1 char:8
    + $upa = New-SPProfileServiceApplication -Name 'User Profile Service
    Application'  ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Offic...viceApplication:
       SPCmdletNewProfileServiceApplication) [New-SPProfileServiceApplication], S
      PUpgradeException
        + FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.
       SPCmdletNewProfileServiceApplication
    ULS Log
    PartitionPropertiesCache.RefreshPartitionProperties: Encountered error: System.InvalidOperationException: Operation is not valid due to the current state of the object.   
     at Microsoft.Office.Server.Administration.UserProfileApplication.PartitionPropertiesCache.get_SqlSession()   
     at Microsoft.Office.Server.Administration.UserProfileApplication.PartitionPropertiesCache.RefreshPartitionProperties()
    Can anyone explain, why I am getting this error.   Thanks. 

    Hi Rashid,
    Before Creating the Service Application, User Profile Service should be started as Central Administration -> Manage Services on server -> Start User Profile Service.
    After the serivce is started, then test again, compare the result.
    Also, you can upgrade User Profile service as the following article:
    http://somethingaboutsharepoint.blogspot.com/2013/04/sharepoint-user-profile-service.html
    In addition, here are two similar posts for this issue, please check if they are useful for you:
    http://blogs.technet.com/b/saantil/archive/2013/03/31/sp-2013-error-when-upgrading-the-user-profile-service-application.aspx
    http://blogs.architectingconnectedsystems.com/blogs/cjg/archive/2014/12/10/Action-15.0.14.0-of-Microsoft.Office.Server.Upgrade.ProfileDatabaseSequence-failed.aspx
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for