1

I need to refer the user "Country" property from user profile. Currently the call to _api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0%23.f|membership|*accountname* does not return country property.

But for each user in contact information, country value is available : enter image description here

So is there any way to sync this country information to user profile ?

1 Answer 1

1

For getting specific property you can use

_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='PropertyToGet')?@v='i:0%23.f|membership|abc@xyz'
3
  • but i need country specific information. i am able to get other properties. Jun 15, 2016 at 11:09
  • Find the property name for country/region and pass it in the REST API call as explained in the answer Jun 15, 2016 at 11:43
  • Yes it finds all the Person Properties, but Country is an extended user profile property. Here is a list of Person Properties: msdn.microsoft.com/en-us/library/office/…
    – Mike
    Jun 15, 2016 at 12:09

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.