1

Im getting the User Information list with this link:

https://SiteURL/_vti_bin/listdata.svc/UserInformationList

But the DateOfBirth return this

<d:DateOfBirth m:type="Edm.DateTime" m:null="true" />

All the user has the Date of birth in their profiles. But the list does not have it

1 Answer 1

1

You can read all the users that are given direct permissions on the site from the "Users Information List". You can query this and retrieve only items which have content type "Person", and for each of them you would have to make a request to the PeopleManager to get their Date of birth.

From Below given reference URL you can find information on how to get the information for a user profile.

Work with user profiles in SharePoint 2013

On short, you would have to make a request to

{SiteUrl}/_api/SP.UserProfiles.PeopleManager/getpropertiesfor?accountName='{AccountName}'

You can test the URL in the browser.

7
  • Sorry is that for Sharepoint Online? May 26, 2016 at 14:28
  • Please check all the possibilities written here...vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    – Hardik
    May 26, 2016 at 14:32
  • Is this proccess slow?, because we have to retrevie first the account name of all user and the get the birth day for each user. There is a better way? or how can I do that so the performance is good May 26, 2016 at 14:38
  • 1
    We can get the user details after getting the account name only. this is the only way we can get all details of single user & we have to do it for each user one by one. :(
    – Hardik
    May 26, 2016 at 14:41
  • And do you know what is the reason that the DateOfBirth is null in the user information list? May 26, 2016 at 14:43

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.