Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Get Property Privacy UserProfileService.asmx Sharepoint 2013 Office 365

$
0
0

I'm trying to get properties privacy from UserProfileService.asmx.

Infos:

Sharepoint 2013 Office 365, Provider-Hosted App using c# 

I'm global administrator

Sample code:

PropertyData[] userProperties = _userProfileService.GetUserProfileByName(loginName);

var firstNamePrivacy = userProperties[2].Privacy;

But i'm always getting privacy as "NotSet", even if it is Public or Private on my Sharepoint profile.

Anyone knows how to solve this problem?


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>