SP.Principal.principalType property (sp.js)

Gets a value containing the type of the principal.

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

var value = SP.Principal.get_principalType ()

Return value

Type: SP.Utilities.PrincipalType