7
votes
Accepted
SharePoint Client People Picker change event
There are multiple events which you can handle for a Client People Picker Control. You can find detailed descriptions of those events this blog.
To get the onChange of people picker, use following ...
6
votes
Accepted
How to update a renamed Active Directory User in the SharePoint People Picker
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" ...
6
votes
REST expand people column
On SharePoint Online, to get the login name (account name) from a user field in a list, you need to select the Name property:
.../_api/web/lists/getbytitle('ListName')/items(60)?$select=MyUserField/...
4
votes
Accepted
Trigger SPClientPeoplePicker to search for string
Check out the global variable SPClientPeoplePicker.SPClientPeoplePickerDict. It's an object which is containing the clientside peoplepicker of the current page. You should be able to identify your ...
4
votes
Resolve & Set value in PeoplePicker using JSOM function
//Works with SharePoint 2010
$("div[title='People Picker']").text(strUserName);
//Works with SharePoint 2013
try {
//SharePoint 2013
var ...
4
votes
Accepted
How to restrict Client side people picker not to allow duplicate users?
You can do this by checking On Control Resolved Users Changed event for the Client People picker. Please find more info here for Client People Picker Events.
You can try following script block to ...
4
votes
SharePoint Client People Picker change event
You need to get the picker id for SharePoint Client People Picker change event. I have got the same using OnUserResolvedClientScript as below. Here to get the picker div I have followed the approach ...
4
votes
Accepted
Allow to add multiple user in people picker field
change your user field in SharePoint list settings to Allow multiple selections: yes
open infopath and let infopath refresh the fields or perform a manual refresh on data/refresh fields menu
then ...
4
votes
SPO: Workflow not working
Here are the detailed steps to achieve your requirements.
For If condition you need to check the created by of current Item.
Use Update List Item action to set the value of PWID column.
Set PWID ...
3
votes
Accepted
SharePoint Online SPUtility GetValue empty for People Picker
No you cannot directly pick values from People picker fields.
Reason being a people picker field is nothing but a lookup to
a list where SharePoint stores various users.
Some of the values associated ...
3
votes
Accepted
Validate Peoplepicker column to check if user belongs to a specified group
You check by below code and call CheckCurrentUserMembership() on PreSaveAction()
function CheckCurrentUserMembership() {
var clientContext = new SP.ClientContext.get_current();
var allGroups = ...
3
votes
SharePoint 2013 People Picker Field Should Not be current User
As we know that PeoplePicker columns cannot be used in List Validation settings, So I don't think there is any OOTB option to achieve this requirement.
So, what is workaround?
Here I am sharing ...
3
votes
3
votes
Accepted
How to store users from another site in a list - PowerShell
I would look into using SPWeb.EnsureUser(loginName) (documentation here, although it's not super informative on its own).
That method will create a new SPUser object for the site where you are trying ...
2
votes
How to set the people picker field using jquery in sharepoint 2013 to current user
//Resolve the user in people picker field
var peoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.h_Requestor_PPkr_TopSpan; //Select the People Picker AKA Get the instance of the People ...
2
votes
Accepted
Using SharePoint 2013 PeoplePicker with jQuery promise
// Run your custom code when the DOM is ready.
$(document).ready(function () {
initializePeoplePicker('peoplePickerDiv');
});
// Render and initialize the client-side People Picker.
function ...
2
votes
Accepted
How do I set the value of a person field with an InfoPath Rule?
In short, no.
This question is a bit old, but I just spent an afternoon chasing around the exact same thing. OP described the scenario perfectly, and having read a dozen different posts on the topic, ...
2
votes
Accepted
CAML query filter for items where the current user is in a "Person or Group" field
You can use the Membership query element. https://msdn.microsoft.com/en-us/library/office/aa544234(v=office.14).aspx
The following example defines a filter for cases where the user is
either ...
2
votes
Domain users not showing in People Picker
After some research, I got things working with this script, following instructions from here. I had to add my domain to People Picker's set of AD domains that it searches, complete with a domain user ...
2
votes
Auto populate people picker from current user
Please check below code.
$(document).ready(function() {
var userName= $().SPServices.SPGetCurrentUser();
$().SPServices.SPFindPeoplePicker({
peoplePickerDisplayName: "Owner",
valueToSet: ...
2
votes
Maximum User limit of People Picker Field
The maximun limit for:
SharePoint 2010 - 96
SharePoint 2013 - default 200
https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ms442451(v%3Doffice.14)
It can be ...
2
votes
Accepted
SPO - How to autofill( ClientPicker in SPHosted-AddIn with JSOM
If you want to set the value in client people picker, You will need below things.
--Client Side People Picker Id
--Account Id or Email of User/group which you want to set in client side people picker
...
2
votes
how to remove tick from people picker?
You can hide that tick icon by jQuery:
$('a[title="Check Names"]').hide();
You can inspect the same element and make sure the title attribute of the a tag must be Check Names.
If it is a different ...
2
votes
Sharepoint 2013 - Custom Display Form not displaying correctly SPD
I have discovered the problem I needed to include
To Display content from Rich textbox or enhanced Rich textbox, need to use below property
disable-output-escaping="yes"
to the end of the
xsl:...
2
votes
Sharepoint 2013 - People picker does not work in custom form
Default behaviour limits the ClientPeoplePicker to return only users from SharePoint, the ClientPeoplePicker does not return SPGroups or Active Directory Groups or Security Groups nor Distribution ...
2
votes
Remove users from People Picker - find where they are granted access
PeoplePicker uses three sources to find users:
HiddenUserList of a SiteCollection (which you already found with MemberShipGroupID=0)
SharePoint UserProfileService (which you already cleared)
Finally ...
2
votes
Is there a way to use outlook mail groups as a Sharepoint group?
SharePoint groups and domain groups are different, also you can use outlook e-mail groups for granting permissions. If you want to see outlook groups at people picker, you need to define outlook group ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
people-picker × 5722013 × 90
sharepoint-online × 78
sharepoint-enterprise × 56
javascript × 52
sharepoint-server × 45
2010 × 44
active-directory × 44
jquery × 37
infopath × 33
sharepoint-designer × 29
list × 28
people-search × 23
sharepoint-foundation × 19
permissions × 19
forms-authentication × 18
spfx × 17
workflow × 16
2016 × 16
claims-based-auth × 16
clientpeoplepicker × 16
2007 × 15
user-profile × 14
custom-form × 12
spservices × 12