User

Lets you modify an existing GroupWise user. It is derived from AdminObject and inherits all its properties and methods.

Properties

The following table lists the properties for this class, along with access and descriptions.

Property

Access

Description

AccountID

R/W

String

AddressFormat

R/W

Enum(AddressFormatConstants)

AdminDefined

R/O

Fields

AllowedAddressFormat

R/W

Enum(AllowedAddressFormatsConstants)

Department

R/W

String

DisableLogin

R/W

Boolean

DMSAccessRights

R/O

DMSAccessRightsCollection

External

R/O

Boolean

ExternalEntity

R/O

Boolean

FaxNumber

R/W

String

GatewayAccess

R/W

String

GivenName

R/W

String

InternetDomainName

R/O

String

InternetDomainNameExclusive

R/O

Boolean

LastClientType

R/O

Enum( ClientTypeConstants )

LDAPAuthentication

R/W

String

MailboxExpDate

R/W

Date

MailboxID

R/O

String

MailboxLastLoginDate

R/O

Date.Returns the date of the last time the mailbox was logged into and updated.

MailboxSize

R/O

Long

NetID

R/W

String

Nicknames

R/O

Nicknames

PhoneNumber

R/W

String

PrefEMailID

R/W

String

Resources

R/O

Resources

Surname

R/W

String

Title

R/W

String

Methods

ClearAddressFormat(THIS)

Removes the Internet Address Format settings for the user.

ClearAllowedAddressFormat(THIS)

Removes the Allowed Internet Address Formats setting for the user.

ClearInternetDomainName(THIS)

Removes the Internet Domain name setting for the user.

ClearPassword( [StoreTypeConstants StoreType], [String CurrentPassword] )

Clears the user’s NetWare password, GroupWise password, or both, according to the specified StoreType. If no StoreType is specified, eadGW is assumed. For GroupWise, CurrentPassword is ignored. For NDS, CurrentPassword is required if the administrator does not have Write rights to the User object.

Move( PostOffice PO )

Moves this User to the PostOffice specified by PO.

If you call Move, you should not call User.Commit, as derived from AdminObject, afterward. When an object is moved, an internal operation is performed that changes the distinguished name of the User. Any subsequent Commit method on the original User object rewrites the original distinguished name and causes errors.

MoveWithinTree( String DN )

Moves this User to a different Organization or Organizational Unit specified by the given DN (distinguished name).

If you call MoveWithinTree, you should not call User.Commit, as derived from AdminObject, afterward. When an object is moved, an internal operation is performed that changes the distinguished name of the User. Any subsequent Commit method on the original User object rewrites the original distinguished name and causes errors.

SetInternetDomainName(THIS_BSTR bstrIDomName, VARIANT_BOOL bIDomExclusive)

Set the Internet Domain Name and the Known Exclusively By The Internet Domain Name settings for the user.

SetPassword( String Password, [StoreTypeConstants StoreType], [String CurrentPassword] )

Sets the user’s NetWare password, GroupWise password, or both. This is not a valid method for external users. For external entities, eadGW is the only valid StoreType. For GroupWise, CurrentPassword is ignored. For NDS, CurrentPassword is required if the administrator does not have Write rights to the User object.

Remarks

ClearPassword() and SetPassword() need to check NDS for rights to change GroupWise passwords.