How do I get the "User Information" for a specified user using JSLink?
With CSR, I can get some user details from
ctx.CurrentItem.PersonField. This gives me an array of users which are selected for that item. Each one looks like:
department: "HR" email: "[email protected]" id: "1024" jobTitle: "Director of directing" picture: "image.png" sip: "" title: "Firstname Lastname"
A few things from the full user profile are missing here (I care about "Mobile Number" and "About Me"). I'm guessing that's because they're not relevant to the normal view. The column is set to Name (with picture and details). The other options give less information, but all have the same issue.
My current and very ugly solution is to have two "Person or Group" fields: one that's set to "Name (with picture and details)" and one that's set to "Mobile Number" and read from both of them.
Is there a better way?