SP.Sharing.DocumentSharingManager.getRoleDefinition Method (sp.js)

Gets the role definition that is associated with a given Role enum value.

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

SP.Sharing.DocumentSharingManager.getRoleDefinition(context)

Parameters

  • context

Return value

The ID of the associated SPRoleDefinition object, or null if it cannot be found.