I am using one list and it has one person field configured for "All Users".

So when i type some email ID in that person field, it is getting user and it works well.

But when i wants to add new record through client object model, some users are not available in UserinformationList in c# and Javascript as well.

Here is the code which i am trying to get all users list.

 ClientContext clientContext1 = new ClientContext(SiteUrl);
 clientContext1.AuthenticationMode = ClientAuthenticationMode.Default;
 UserCollection usrdd = clientContext1.Web.SiteUsers;
  • 1
    users are added to UserinformationList on their first login to site. so if user are never login, you cant find it in userinformationlist. Feb 2, 2015 at 7:21

1 Answer 1


If you need to get a reference to user object (either an existing one, or one that is just being created), use the ensureUser method (source from this thread):

var context = SP.ClientContext.get_current();
var theUser = context.get_web().ensureUser("DEV\testowner");



function(sender, args){



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.