Skip to content

Instantly share code, notes, and snippets.

@star-crossed
Created January 26, 2018 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save star-crossed/e7df63b47004799ca0e995a647b1a6e1 to your computer and use it in GitHub Desktop.
Save star-crossed/e7df63b47004799ca0e995a647b1a6e1 to your computer and use it in GitHub Desktop.
String for the people picker used for the ShareObject method
var peoplePickerValue = "[{\"Key\":\"" + user.Email + "\",\"Description\":\"" + user.Email + "\",\"DisplayText\":\"" + user.Email + "\",\"EntityType\":\"\",\"ProviderDisplayName\":\"\",\"ProviderName\":\"\",\"IsResolved\":true,\"EntityData\":{\"SPUserID\":\"" + user.Email + "\",\"Email\":\"" + user.Email + "\",\"IsBlocked\":\"False\",\"PrincipalType\":\"UNVALIDATED_EMAIL_ADDRESS\",\"AccountName\":\"" + user.Email + "\",\"SIPAddress\":\"" + user.Email + "\"},\"MultipleMatches\":[],\"AutoFillKey\":\"" + user.Email + "\",\"AutoFillDisplayText\":\"" + user.Email + "\",\"AutoFillSubDisplayText\":\"\",\"AutoFillTitleText\":\"" + user.Email + "\n" + user.Email + "\",\"DomainText\":\"$domain\",\"Resolved\":true}]";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment