IGPMTrustee Property Methods

The property methods of the IGPMTrustee interface get the properties described in the following table. For a general discussion of property methods, see Interface Property Methods in the ADSI documentation .

Properties

TrusteeDomain

The trustee domain in NetBIOS format, resolved from the SID.

Access type: Read-only

Scripting data type: String

// C++ method syntax
HRESULT get_TrusteeDomain(
  [out] BSTR* bstrVal
);

TrusteeDSPath

Fully qualified distinguished name of the security principal in the directory service. For example, "cn=administrators,cn=builtin,dc=domainname,dc=coname,dc=com". This is the path to the directory service (DS) object that corresponds to the security principal.

Access type: Read-only

Scripting data type: String

// C++ method syntax
HRESULT get_TrusteeDSPath(
  [out] BSTR* pVal
);

TrusteeName

Relative distinguished name (RDN) of the trustee, resolved from the SID.

Access type: Read-only

Scripting data type: String

// C++ method syntax
HRESULT get_TrusteeName(
  [out] BSTR* bstrVal
);

TrusteeSid

The SID of the trustee.

Access type: Read-only

Scripting data type: String

// C++ method syntax
HRESULT get_TrusteeSid(
  [out] BSTR* bstrVal
);

TrusteeType

The type of the trustee. Values include the following:

  • SidTypeUser
  • SidTypeGroup
  • SidTypeDomain
  • SidTypeAlias
  • SidTypeWellKnownGroup
  • SidTypeDeletedAccount
  • SidTypeInvalid
  • SidTypeUnknown
  • SidTypeComputer

The values are declared in Winnt.h.

For more information, see SID_NAME_USE in the Security documentation .

Access type: Read-only

Scripting data type: String

// C++ method syntax
HRESULT get_TrusteeType(
  [out] LONG* lVal
);

Remarks

For more information about security groups, see How Security Groups are Used in Access Control in the Active Directory Programmer's Guide.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Gpmgmt.h
IDL
Gpmgmt.idl
DLL
Gpmgmt.dll
IID
IID_IGPMTrustee is defined as 3B466DA8-C1A4-4B2A-999A-BEFCDD56CEFB

See also

IGPMTrustee

IGPM

IGPMPermission

IGPMSecurityInfo