SP.Group.owner property (sp.js)

Gets or sets the owner of the group which can be a user or another group assigned permissions to control security.

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

var value = SP.Group.get_owner ()
var value = SP.Group.set_owner ()

Return value

Type: SP.Principal

The owner of the group.

REST resource endpoint

See Group resource for more information.

Endpoint URI structure

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

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

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

GET syntax

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