SP.User.isSiteAdmin property (sp.js)

Gets or sets a Boolean value that specifies whether the user is a site collection administrator.

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

var value = SP.User.get_isSiteAdmin ()
var value = SP.User.set_isSiteAdmin ()

Return value

true if the user is a site collection administrator; otherwise, false.

REST resource endpoint

See User resource for more information.

Endpoint URI structure


HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

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

GET syntax

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