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

For getting specific property you can use

_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='PropertyToGet')?@v='i:0%23.f|membership|abc@xyz'
  • but i need country specific information. i am able to get other properties. – Monica Jagani Jun 15 '16 at 11:09
  • Find the property name for country/region and pass it in the REST API call as explained in the answer – Amal Hashim Jun 15 '16 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 '16 at 12:09

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.