IAzApplication::AddDelegatedPolicyUser method (azroles.h)

The AddDelegatedPolicyUser method adds the specified security identifier (SID) in text form to the list of principals that act as delegated policy users.

Syntax

HRESULT AddDelegatedPolicyUser(
  [in]           BSTR    bstrDelegatedPolicyUser,
  [in, optional] VARIANT varReserved
);

Parameters

[in] bstrDelegatedPolicyUser

Text form of the SID to add to the list of delegated policy users.

[in, optional] varReserved

Reserved for future use. This parameter can be any of the following values:

  • varReserved.vt == VT_ERROR and varReserved.scode == DISP_E_PARAMNOTFOUND
  • varReserved.vt == VT_EMPTY
  • varReserved.vt == VT_NULL
  • varReserved.vt == VT_I4 and varReserved.lVal == 0
  • varReserved.vt == VT_I2 and varReserved.iVal == 0

Return value

C++

If the method succeeds, the method returns S_OK.

An attempt to call this method on an XML store will return E_INVALIDARG.

Any other HRESULT value indicates that the operation failed.

VB

If the method succeeds, the method returns S_OK.

An attempt to call this method on an XML store will return E_INVALIDARG.

Any other HRESULT value indicates that the operation failed.

Remarks

Delegated policy users are principals that are allowed to read the subset of the policy data that the policy administrator of an IAzApplication object uses to administer the delegated object.

Note  Delegated policy users are not supported for XML stores.
 
To view the list of delegated policy users, use the DelegatedPolicyUsers property.

You must call the Submit method to persist any changes made by this method.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header azroles.h
Library Azroles.lib
DLL Azroles.dll
Redistributable Windows Server 2003 Administration Tools Pack on Windows XP