New jPoint.userprofile.js plugin

Coordinator
Nov 13, 2009 at 3:43 AM

New jPoint plugin to retrieve and parse the current user profile. 

Information is based on the content from /_layouts/userdisp.aspx. 

Initialize UserProfile

  • jP.getUserProfile();     //read userdisp.aspx and populate jP.UserProfile object

Access profile data with

  • jP.UserProfile.Name
  • jP.UserProfile.Account
  • jP.UserProfile.Title
  • jP.UserProfile.EMail
  • jP.UserProfile.Notes
  • jP.UserProfile.AboutMe
  • jP.UserProfile.Picture
  • jP.UserProfile.Department
  • jP.UserProfile.JobTitle
  • jP.UserProfile.SipAddress
  • jP.UserProfile.SIPAddress
  • jP.UserProfile.FieldCount  //count of fields
  • jP.UserProfile.Fields  //array of field names
  • jP.UserProfile.Items[0].Name ... SipAddress

See example here http://www.sharejpoint.com/examples/src/jPUserProfile.aspx

Nov 13, 2009 at 6:21 AM

Ken, Just what the doctor ordered! Thanks.

Jan 29, 2010 at 6:20 PM

Hi Ken,

 I was having an issue with this plugin on MOSS with MySites enabled.  When it went to retrieve /_layouts/userdisp.aspx it was getting redirected to the  MySite.

Changing the url to "/_layouts/userdisp.aspx?force=true'  stopped the redirect.

Updated Code:

var ProfileURL = jP.SiteURL+"/_layouts/userdisp.aspx?force=true";
        if(typeof UserID !== "undefined")
            ProfileURL = ProfileURL + "&ID=" + UserID;

 

Just wanted to put this out there because I was complating doing inappropraite things in the 12 hive to resolve this :)

 

 

 

Coordinator
Jan 29, 2010 at 6:29 PM

Nice tip. Thanks, Sequill. 

-Will

On Jan 29, 2010 1:20 PM, "sequill" <notifications@codeplex.com> wrote:

From: sequill

Hi Ken,

 I was having an issue with this plugin on MOSS with MySites enabled.  When it went to retrieve /_layouts/userdisp.aspx it was getting redirected to the  MySite.

Changing the url to "/_layouts/userdisp.aspx?force=true'  stopped the redirect.

Updated Code:

var ProfileURL = jP.SiteURL+"/_layouts/userdisp.aspx?force=true";
        if(typeof UserID !== "undefined")
            ProfileURL = ProfileURL + "&ID=" + UserID;

 

Just wanted to put this out there because I was complating doing inappropraite things in the 12 hive to resolve this :)

 

 

 

Read the full discussion online.

To add a post to this discussion, reply to this email (jPoint@discussions.codeplex.com)

To start a new discussion for this project, email jPoint@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Mar 1, 2010 at 5:35 PM

Very nice. I was just looking to see if there was a simple jPoint way to get the current user. :)

Michael