2

The farm has not UPA service deployed and I wouldn't do it.

Is it possible to retrieve using JSOM or REST one of the properties that we see in the _layouts/15/userdisp.aspx? page for a specific user?

  1. I don't find any documentation about getting the user information (no user profile) using JSOM.

  2. I thought I could be able to access these properties using REST (http://sympmarc.com/2014/01/21/getting-user-information-with-the-sharepoint-2013-rest-api/) but I get null for the Department property even if the property is set for the specified user.

  3. As suggested by the @harryB's answer, there is endpoint siteuserinfolist, however with this REST call I still get a null value for department:

                           `<d:Department m:null="true" />`
    

1 Answer 1

1

REST end point for getting details for a particular user from the User Information List as below: For example below request would get the details of a user with userid (item id in the User Info List) = 16

http://site/_api/web/siteUserInfoList/items(16)
3
  • I tried this endpoint and it works fine. However I still see the property null. Please check my question update. Commented Nov 25, 2015 at 10:31
  • This information might be helpful for you. social.technet.microsoft.com/Forums/en-US/…
    – HarryB
    Commented Nov 25, 2015 at 10:40
  • Thanks really helpful. I've just found an issue on my tests, and I can see now data returned in the correct way. So your suggestion works, and the method .2 in my question too works. Commented Nov 25, 2015 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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