$Membership.Join

Overview

Merges specified input as identity array. Duplicate values are removed from array..

Array<Identity> $Membership.Join(input: ( Array<string> | Array<Identity> ))

Arguments

( Array<string> | Array<Identity> ) input

List of identities. Can be array of Identity | identity

Returns

Array of identities.

Remarks

This function recursively searches if array element is a array again to find all identities on input element and returns flatten identity array.

Example

Merge to identity

Example

var result = $Membership.Join([ $Membership.FindIdentity('Developers','Group'), $Membership.FindIdentity('General Management\Accounting','OrganizationUnit') ]);

Copyright © 2010 - 2023 Emakin. All rights reserved.