IADsUser::Groups method

The IADsUser::Groups method obtains a collection of the ADSI group objects to which this user belongs. The method returns an IADsMembers interface pointer through which you can enumerate all the groups in the collection.

Syntax

HRESULT Groups(
  IADsMembers **ppGroups
);

Parameters

ppGroups

Pointer to a pointer to the IADsMembers interface on a members object that can be enumerated using IEnumVARIANT to determine the groups to which this end-user belongs.

Return Value

This method supports the standard return values, including S_OK. For other return values, see ADSI Error Codes.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See Also

ADSI Error Codes

IADsMembers

IADsUser

IADsUser Property Methods

IEnumVARIANT