Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a set of users in my SharePoint site with a few custom properties like GUID, LOS, YOS etc. My application needs to access the user custom properties and do CRUD operations on the properties. I have searched in the net but I found only how to access basic properties like email, name etc. Can anyone let me know how to accomplish this using client object model of SharePoint 2010?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Client Object Model is bound to SiteCollection scoped functionality. The reason you can only get default properties is because Custom Properties are not synced to the UserInfoList in the SiteCollection. With Client OM you are not able to get the UserProfiles the way you should when building a Farm Solution for instance.

If you do need to use Client OM because this is hosted in Office 365 I'm afraid the only option is to put the custom properties in a custom list somewhere in your SiteCollection with a reference to the users they're for.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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