SP.Group.users property (sp.js)

Gets a collection of user objects that represents all of the users in the group.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Group.get_users ()

Return value

Type: SP.UserCollection

A collection that represents the users of the group.

REST resource endpoint

See Group resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/users

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/users

GET syntax

GET http://<sitecollection>/<site>/_api/web/sitegroups(groupid)/users