SP.UserCollection.add Method (sp.js)
Adds the user specified by the user creation information parameter to the collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.UserCollection.add()
Parameters
parameters
Type: SP.UserCreationInformationA SP.UserCreationInformation object (sp.js) that contains information associated with the user. It must not be null.
Return value
Type: SP.User