39

Try AssignedTo/EMail....case sensitive. Available values from a user field (Source): Title Name EMail MobilePhone SipAddress Department JobTitle FirstName LastName WorkPhone UserName Office ID Modified Created ImnName NameWithPicture NameWithPictureAndDetails ContentTypeDisp


20

Alex, This really is one of the more vexing issues of upgrading the branding/master page of a SharePoint site. Please try this solution: I created a javascript file called entityeditor.ie9fix.js, added the javascript code that will follow, and saved it in /layouts/1033. In my master page I added <script type="text/javascript" src="/_layouts/1033/...


15

Here is the solution: [Microsoft.SharePoint.SPUser]$spuser = $spWeb.EnsureUser("domain\username") $spListItem[$newSMTName] = $spuser $spListItem.Update()


14

I found a solution for this problem. below code should be added to ascx file <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <SharePoint:ScriptLink name="clienttemplates.js" runat="server" LoadAfterUI="true" ...


13

scenario: when you enter form editing and has some user of this picker people, this is the "oldHtml"? (I'm finding this a bad practice) try using this code: var getIDPeoplePicker=$("div[Title='Column Name of the people picker here']").id; var ppobject = SPClientPeoplePicker.SPClientPeoplePickerDict[getIDPeoplePicker]; var usersobject = ppobject....


8

Active Directory Import is similar to the Profile import mechanism we had back in SharePoint Server 2007. It's an awful lot easier and quicker to configure than "SharePoint Profile Synchronisation", AKA "User Profile Synchronisation Service" (in services on server) AKA ForeFront Identity Manager (FIM) for SharePoint Server 2010. Enabling AD ...


8

If you look at the HTML SP renders for a peoplepicker you will see why your code is not working. But here's how you can attach an event to the onchange: $(".ms-usereditor div").bind('input propertychange', function() { alert("Onchange event" ); }); Update Here's a way which allows easy access/modification for all clientside peoplepicker ...


7

Finally found the solution to my problem. I was trying to set the value of my field to a generic array. What I needed to do was create a generic array, add my user value to it and then convert the array to have the appropriate specific type....FieldUserValue in this case. $userName = "whd\wholland" $spuser = EnsureUser $context $user $...


6

I havent tried this for claims in SP2010, but in SP2007 this was done for FBA by adding PeoplePickerWildCard element to membership provider in web.config <PeoplePickerWildcards> <clear /> <add key="AspNetSqlMembershipProvider" value="%" /> <add key="fbaMembers" value="%" /> </PeoplePickerWildcards> http://msdn.microsoft....


6

I have used the following javascript to set people pickers on new/edit forms in SP2013: First you need to get the loginName for the user, you could extract the ID from the value you got and use it to get the loginName through a REST query: var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")"; $.ajax({ url : ...


6

The People Picker has three sources: Active Directory (or the configured identity provider) The User Information List. The UIL is stored in the SharePoint Content Database UserInfo table. These are users you've already added to the Site Collection. The User Profile Service Application for Audiences only, as well as augmenting information to People pulled ...


5

To leverage your work, you can use SharePoint jQuery based library to work with your forms and fields: jPoint - jQuery for SharePoint forms, lists, webparts, and webservices And then you just do: jP.Form.readForm().MyUserField.val();


5

This is my solution: http://blog.vitalyzhukov.ru/peopleeditorand-internet-explorer-9.aspx (in russian). Translated page by Google translator: http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fblog.vitalyzhukov.ru%2Fpeopleeditorand-internet-explorer-9.aspx


5

David, I guess there is a MultiSelect property which you can set to false to allow only a single entry of User/Group For example: PeopleEditor Control - The article is for SP 2007 but I hope its the same in 2013


5

This is what I have been using to get an SPFieldUserValue from the resolved users and groups in a PeopleEditor control. public static SPFieldUserValue GetPeopleFromPickerControl(PeopleEditor people, SPWeb web) { SPFieldUserValue value = null; if (people.ResolvedEntities.Count > 0) { for (int i = 0; i < people.ResolvedEntities.Count;...


5

Solution: On custom form i added SharePoint:ClientPeoplePicker control near SP2010 peoplepicker control (Which not have autocomplete), that was hided. Markup to add sharepoint:clientpeoplepicker: <sharepoint:clientpeoplepicker allowemailaddresses="true" allowmultipleentities="true" clientidmode="Static" cssclass="ms-long ms-spellcheck-true" height="...


5

Proposing some other solutions... Given that you have a people picker called ppobject: var ppobject = SPClientPeoplePicker.SPClientPeoplePickerDict["my_peoplePicker_TopSpan"]; To delete the last user in the people picker, you can call ppobject.DeleteProcessedUser() This is ultimately what's happening in the accepted answer, for as many times as there ...


5

Try var peoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv_TopSpan; var users = peoplePicker.GetAllUserInfo(); for (var i = 0; i < users.length; i++) { alert(user.DisplayText); }


5

Using JSOM in the past I have experienced this trouble when I have a lack of system resources, specifically when my systems RAM has less than 5% available. The fact that you are getting a Service Activation Exception leads me to believe this may very well be the case, and can be verified in Windows event viewer. Close some applications or disable some ...


5

Make sure the people picker javascript library is loaded. Please try this: SP.SOD.executeFunc('clientpeoplepicker.js', 'SPClientPeoplePicker', function () { //your code goes here });


5

To update the name in SharePoint People Picker and other lists, execute the following PowerShell Command: $web = (Get-SPSite https://Environment).rootweb $web | Set-SPUser -Identity "DOMAIN\username" -SyncFromAD When you refresh the User Information List or search the user in the People Picker, you will see the updated name.


4

Here is a plain jQuery example. I can't take credit for it, I believe Marc Anderson came up with it. Just change the column variable with the display name of your column. var columnName = 'Assignee'; // There's no easy way to find one of these columns; we'll look for the comment with the columnName var searchText = RegExp("FieldName=\"" + columnName ...


4

Where is your code running? Web part, application page etc? Regardless, you can probably do something similar to the following try { //first get the SPGroup you want to add users to SPGroup addToGroup = SPContext.Current.Web.AssociatedVisitorGroup; //now loop through each entity in your user picker foreach (PickerEntity entity in ...


4

Working as designed. :) I discussed this at TechEd last year: http://channel9.msdn.com/Events/TechEd/NorthAmerica/2011/OSP308 (about 40 minutes in) The fix is custom development.


4

If you mean the width, you just set the width of the PeopleEditor control. <SharePoint:PeopleEditor Width="300" ID="myppl" runat="server" AllowEmpty="false" MultiSelect="true" />


4

If you just want to add all users, just add NT AUTHORITY\authenticated users If you want to add every user individually, you have to get users (maybe as Principals) from AD, and add them to a group in SharePoint. var principal... var loginName = @"MYDOMAIN\" + principal.SamAccountName; var name = principal.DisplayName; web.AssociatedMemberGroup.Users.Add(...


4

The client object model uses the standard SharePoint security and don't allow you to run with elevated priviledges. Who has access to see members of groups are defined at the group and the default is only members can see who are members. You can change this by going to: Site Actions -> Site Settings -> People and groups -> Click the Groups header in ...


4

Create a Single-line of text column and make it as hidden. Through event receiver populate its value in your desired pattern (e.g. Dear Joe Bloggs, Jane Doe, and John Doe) from the "Person or Group" column. And use that new column in the workflow instead of "Person or Group" column. I know there is a overhead of writing event receiver but you will be able to ...


4

OK, finally got. After long hours looking at the ugliest HTML/JS even written and short short periods of insanity, I add an idea that I don't totally like and it isn't the best, but at this point I don't f***ing care. I just want to get over this. So, I simple create a basic .aspx page with the follwing code: <%@ Page Language="C#" %> <%@ Register ...


4

add this code in your .ascx page <SharePoint:PeopleEditor ID="spPeoplePicker" runat="server" Width="350" SelectionSet="User" /> You can also refer to link below. it is showing same problem you have now. there is no difference to take PeoplePicker in SP 2010 and SP 2013. http://social.technet.microsoft.com/Forums/en-AU/sharepoint2010programming/...


Only top voted, non community-wiki answers of a minimum length are eligible