SP.Site.owner property (sp.js)

Gets or sets the owner of the site collection. (Read-only in sandboxed solutions.)

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

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

Return value

SP.User

A User object that represents the owner.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/site/owner

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/site/owner

GET syntax

GET http://<sitecollection>/<site>/_api/site/owner