Get current Sharepoint user manager details using JavaScript

We have recently started to deploy Sharepoint solutions around the business, and I was asked to customise one of them to include personalisation’s around the current user. One of those personalisation was to retrieve the current users ‘line manager’ details.

The following code is what I have come up with, this is work in progress, and not yet quite finished. I am sure there is an easier way to do this.. However a tight deadline meant I had to make it work, then work on perfecting it. If anyone has a better way of doing this I would appreciate a comment below.

Mike Hudson

Mike Hudson is a Lead Cyber Security Analyst living and working in Kingston Upon Hull. With extensive experience in Microsoft and Apple technologies, ranging from desktop OS’s to Server OS’s and hardware. By day working as part of an infrastructure team, and by night ridding the world of IT issues through blog posts..

%d bloggers like this: