IADsGroup Method: IsMember

IsMember
(
MemberPath  As String
) As VariantBool;

Parameters

[in] String MemberPath
The path of the member within the specified group.

Description
Tells whether the given user is a member of this group

Return Values
Returns TRUE if User is a member of the group.

Example

Dim GroupObject As IADsGroup
Set GroupObject = GetObject("NTDS://YourDomainName/GroupName")
Debug.Print GroupObject.IsMember("UserPath")

 

See Also