I have a requirement to read AD attributes of users (not just logged in user) from my SP hosted app. This includes information like Department, Manager, location and some other custom attributes.

Is it possible to get this info from AD given that current logged in user has enough access to read the attributes? Please provide details of how this can be done in JavaScript code of the App. We can't read from user profile as it doesn't have everything mapped.


If AD properties are already mapped with user profile properties, then you can get them using REST API.


Just make GET request to the above end-point, it will return you current user's properties.

Get all properties of Specific User SP Online


SharePoint 2013: Get UserProfile Properties with REST API

PS: You can not get all users at once. You have to find them by their login name.

  • thanks for the info, however, we need to read from AD as customer has not mapped the attributes to user profile. I will update the question. – Prakash Jul 26 '16 at 8:43
  • your customer will have to consider the mapping otherwise it is not possible using javascript – Atish Dipongkor - MVP Jul 26 '16 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.