Platform SDK: Active Directory, ADSI, and Directory Services

IADsOU

The IADsOU interface is designed for representing and managing the organizational unit to which an account belongs. This interface is one of several that provide support for directory services to organize accounts by country, locality (region), organization (company), and organizational unit (department). Organization unit is managed by this interface, locality by the IADsLocality interface, and organization by IADsO.

When a directory service provides hierarchical groupings of directory entries by country, locality, organization, and organization unit, you can use this and the related interfaces to expand the directory tree accordingly. In this case, the IADsOU interface is implemented by an organization unit object that implements the IADsContainer interface as well.

IADsOU is a dual interface that inherits from IADs. The IADsOU interface exposes the following property methods.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.

IDispatch methods Description
GetTypeInfoCount Gets the number of type descriptions.
GetTypeInfo Gets a description of object's programmable interface.
GetIDsOfNames Maps name of method or property to DISPID.
Invoke Calls one of the object's methods, or gets and sets one of its properties.

IADsOU property methods Description
get/put_Description Gets and sets the description of the organizational unit.
get/put_LocalityName Gets and sets the physical location of the unit.
get/put_PostalAddress Gets and sets the post office address of the unit.
get/put_TelephoneNumber Gets and sets the telephone number of the unit.
get/put_FaxNumber Gets and sets the fax number of the unit.
get/put_SeeAlso Gets and sets the other information relevant to the unit.
get/put_BusinessCategory Gets and sets the category of general business functions of the unit.

Requirements

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
  Windows 95/98: Requires Windows 95 or later (with DSClient).
  Header: Declared in Iads.h.

See Also

IADsLocality, IADsO, IADsContainer, IADsOU Property Methods