Share via


SP.BasePermissions object

Specifies a set of built-in permissions.

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

var object = new SP.BasePermissions()

Members

The BasePermissions object has the following members.

Constructor

The BasePermissions object has the following constructor.

Constructor

Description

BasePermissions

Initializes a new instance of the SP.BasePermissions object.

Methods

The BasePermissions object has the following methods.

Method

Description

clear

Clears the specified permission for the current instance.

clearAll

Clears all permissions for the current instance.

equals

Determines whether this instance and the specified SP.BasePermissions object have the same permissions.

has

Determines whether the current instance has the specified permission.

hasPermissions

Determines whether the current instance has the specified set of permissions.

set

Sets the specified permission for the current instance.

Properties

The BasePermissions object has the following properties.

Property

Description

typeId

This member is reserved for internal use and is not intended to be used directly from your code.