SP.GroupCollection.add Method (sp.js)
Adds a group to the collection of groups in a site collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.GroupCollection.add()
Parameters
parameters
Type: SP.GroupCreationInformationA SP.GroupCreationInformation object that represents information associated with the group.
It facilitates creation of a cross-site group.
It must not be null.
Return value
Type: SP.Group
REST resource endpoint
To create a group, send a POST request to the Groups endpoint. See GroupCollection resource for more information.