Forum Discussion
Ryan Shripat
Oct 05, 2016Copper Contributor
Can I deploy a SharePoint Add-In with User Profiles (Social) | Read to the SharePoint AppStore?
I'd like to be able to programmatically retrieve a user's name and manager using code similar to the following: using (var clientContext = TokenHelper.GetClientContextWithAccessToken(hostWeb.ToS...
Deleted
Oct 06, 2016you can not get the propties of a profile where you have not the right to see it.
var clientContext = new SP.ClientContext.get_current();
var peopleManager = new SP.UserProfiles.PeopleManager(clientContext);
var personProperties = peopleManager.getMyProperties();
clientContext.load(personProperties);
clientContext.executeQueryAsync(function () {
// First time experience completed
var prop= personProperties.get_userProfileProperties()['prop'];
a example above. and please be aware you need to us SP.SOD.executeOrDelayUntilScriptLoaded
- Ryan ShripatOct 06, 2016Copper Contributor
Deleted wrote:
you can not get the propties of a profile where you have not the right to see it.
Are you saying that it is not possible for a provider-hosted app from the App Store to have permissions to see this user profile data?
- DeletedOct 06, 2016
It depends if your app has tennant permissions it would see them but i guess you did not include that in your permissions.
- Ryan ShripatOct 07, 2016Copper Contributor
Can an app with Tenant permissions be on the App Store?