PickerEnity question
-
I'm using the following code to create an SPFieldUserValue object from an entry in a SharePoint People Editor control on an app page:
Dim requestorCol As New SPFieldUserValue
For Each entity As PickerEntity In sppeModifyAccount.ResolvedEntities
requestorCol = New SPFieldUserValue(web, Convert.ToInt32(entity.EntityData("SPUserID")), entity.Key)
NextThis is working 99% of the time, where it is able to search our AD and resolve to the person's name typed in the control. That is, until today when we were doing one final bit of beta testing and the form wouldn't submit. After debugging I noticed that the user who's name was put into the control didn't have an ID listed in the entity. My initial thought is that the user we are placing in the form hasn't been to the site yet, and thus doesn't have an SPUserID associated in Sharepoint for her user account. I am having her test that out now, but is there another way around this? We are using Foundation and don't have user's log into the site.
-
I'm using the following code to create an SPFieldUserValue object from an entry in a SharePoint People Editor control on an app page:
Dim requestorCol As New SPFieldUserValue
For Each entity As PickerEntity In sppeModifyAccount.ResolvedEntities
requestorCol = New SPFieldUserValue(web, Convert.ToInt32(entity.EntityData("SPUserID")), entity.Key)
NextThis is working 99% of the time, where it is able to search our AD and resolve to the person's name typed in the control. That is, until today when we were doing one final bit of beta testing and the form wouldn't submit. After debugging I noticed that the user who's name was put into the control didn't have an ID listed in the entity. My initial thought is that the user we are placing in the form hasn't been to the site yet, and thus doesn't have an SPUserID associated in Sharepoint for her user account. I am having her test that out now, but is there another way around this? We are using Foundation and don't have user's log into the site.
Found the issue. This is because the user had never signed into the SharePoint site, and thus was not in the User Information List. We're using Foundation, so I don't have the option to use User Profile Sync. Is there anything out there (preferably free) that I could use to get all my users into the User Information List?
-
Found the issue. This is because the user had never signed into the SharePoint site, and thus was not in the User Information List. We're using Foundation, so I don't have the option to use User Profile Sync. Is there anything out there (preferably free) that I could use to get all my users into the User Information List?
No might be you need to create a timer job to update all users to List from AD