This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.
Creating a People Picker control to utilize the SharePoint Integration People Picker SmartObject from scratch can be confusing. If not configured correctly, you could receive errors.
You will see an error similar to the following:
You may also run into an issue where the error mentions a missing SiteURL.
This issue is related to how K2 integrates with Lookup Columns. SharePoint actually uses an ID column in addition to the column that holds the actual value.
For example, there will be a Person column and a Person (Value) column. The Person column will hold the ID, while the Person (Value) column holds the Username.
The issue occurs on the View because the Display Field and the Field are not setup correctly. The OOTB setup is to have the Display Field connected to the Person (value) column, and the Field be the Person column.
The second issue occurs because we do not have a SiteURL configured. We must provide a Site URL so K2 knows which Site User Store to go to.
To resolve this, set the Display Field to hold the Person (Value) column and the Field to hold the Person column. See the configuration below:
The second issue was resolved by editing the "When Picker is resolving" rule and providing the SiteURL for the site we would like the Users to come from.