Skip to content

GetChilds

Retrieves the child identities of a specified parent identity.

1
$Membership.GetChilds(parent: ( string | Identity )):Array<Identity>

Parameters

( string | Identity ) parent
    The parent identity for which to find child identities.

Returns

An array of identities representing the children of the specified parent identity.

Examples

List the sub-units of a department

1
2
3
4
5
var units = $Membership.GetChilds($Membership.FindIdentity('General Management', 'OrganizationUnit'));

var names = units.map(function (unit) {
    return unit.Name;
});

See Also