SP.AppInstance.appPrincipalId property (sp.js)

Gets the encoded claim value for the app principal identifier associated with the app instance.

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

var value = SP.AppInstance.get_appPrincipalId ()

Return value

Undefined

The encoded claim value.