IAzApplication::AddPolicyAdministratorName method (azroles.h)
The AddPolicyAdministratorName method adds the specified account name to the list of principals that act as policy administrators.
HRESULT AddPolicyAdministratorName( [in] BSTR bstrAdmin, [in, optional] VARIANT varReserved );
Account name to add to the list of policy administrators. The account name must be in user principal name (UPN) format (for example, "email@example.com"). The LookupAccountName function is called to retrieve the domain.
[in, optional] varReserved
Reserved for future use.
If the method succeeds, the method returns S_OK.
Any other HRESULT value indicates that the operation failed.
Policy administrators for an object can perform the following tasks:
- Read the object
- Write attributes to the object
- Read attributes of child objects of the object
- Write attributes to child objects of the object
- Delete the object
- Delete child objects of the object
- Create child objects of the object
You must call the Submit method to persist any changes made by this method.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Redistributable||Windows Server 2003 Administration Tools Pack on Windows XP|