Share via


GetUserProperty Method

GetUserProperty Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Gets a directory attribute property of a Microsoft Active Directory object.

Applies To

IWorkflowSession Interface

Type Library

Microsoft CDO Workflow Objects for Microsoft Exchange

DLL Implemented In

CDOWF.DLL

Syntax

[Visual Basic]Function GetUserProperty
(
    bsUser As String,     bsAttrName As String,     bsIsEmail As UserIDType
) As Variant

[C++]HRESULT GetUserProperty (     BSTR bsUser,     BSTR bsAttrName,     UserIDType bsIsEmail,     VARIANTvarAttr );

Parameters

  • bsUser
    Distinguished Name in Active Directory if bIsEmail equals cdowfDistinguishedName(1) or email address if bIsEmail equals cdowfUserEmailAddress(0).
  • bsAttrName
    Active Directory attribute.
  • bsIsEmail
    cdowfUserEmailAddress(0) if bsUser is an email address or cdowfDistinguishedName(1) if bsUser is a distinguished name from Active Directory.
  • varAttr
    The value of the requested property.

Return Value

Returns S_OK if successful, or an error value otherwise.

Example

'Action Script Procedure: mgr = GetUserMgr ("someone@example.com")

Function GetUserMgr (UserAddress) with WorkflowSession mgrDN = .GetUserProperty(UserAddress, "manager",0) GetUserMgr = .GetUserProperty(mgrDN, "mail", 1) end with End Function

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.