IADsUser::Groups method (iads.h)

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(
  [out] IADsMembers **ppGroups
);

Parameters

[out] 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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See also

ADSI Error Codes

IADsMembers

IADsUser

IADsUser Property Methods

IEnumVARIANT