This project has moved and is read-only. For the latest updates, please go here.

SPServices EnsureUser

Feb 18, 2014 at 3:56 PM
I have created a web-part supported by SPServices which contains a peoplePicker for a SharePoint 2007 site. If the user selects a person who has never logged into the site or specified in a group, the DictionaryEntry contains the DisplayName, EMail, & PrincipalType, but NOT the SPUserID.

I don't want to limit all the peoplePicker to a specific group, but if I don't, I run into this issue. I can't be the only person with this issue. Is there a workaround for this?

REF Discussion: 336183

Feb 18, 2014 at 4:04 PM
Since the user hasn't "touched" the Site Collection yet, they aren't in the User Information List.

The trick would be to add them to ssomething in the Site Collect. Then they would be in the UIL and have an SPUserID.

Also take a look at the ResolvePrinciple operation. I'm not sure if it'll help, but it sound promising?