0

It is known that SP 2013 left only two levels of User Profile Property Privacy: 'Only me' and 'Everyone'. Is there a way to grab the privacy level using CSOM?

The code below only gives me values itself:

var properties = peopleManager.GetPropertiesFor("i:0#.f|membership|xxx@yyy.onmicrosoft.com");
context.Load(properties, p => p.UserProfileProperties);
context.ExecuteQuery();
properties.UserProfileProperties.Dump();
0

Looks like CSOM returns only those profiles fields that are accessible to everyone; so the question does not make sense.

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.