SP.Web.getUserEffectivePermissions Method (sp.js)

Gets the effective permissions that the specified user has within the current application scope.

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

SP.Web.getUserEffectivePermissions(userName)

Parameters

  • userName
    A string that specifies the user login name.

Return value

SP.BasePermissions

The permissions of the given user.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/getUserEffectivePermissions(userName)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/getUserEffectivePermissions(userName)

Resource parameters

  • userName