User object

The User object represents the current user and is available to all event procedures.

ClosedUser Object Properties

The User object provides the following properties, all of which are read-only. To affect some read-only properties requires user interaction or custom event procedures.

Note:

Meridian user names can be shown in different formats as specified by the server registry setting UserNameFormat described in HKEY_LOCAL_MACHINE\Software\Cyco\AutoManager Meridian\CurrentVersion\Server\UserDatabase.

ClosedAllEmails Property

All email addresses of the user as stored in the user's Meridian account information. Read-only.

Syntax

AllEmails As String

ClosedDescription Property

The description of the user as stored in the user's Meridian account information. Read-only.

Syntax

Description As String

ClosedEmailAddress Property

The default email address of the user as stored in the user's Meridian account information. Read-only.

Syntax

EmailAddress As String

ClosedFullName Property

The full name of the user as stored in the user's Meridian account information. Read-only.

Note:

Meridian user names can be shown in different formats as specified by the server registry setting UserNameFormat described in HKEY_LOCAL_MACHINE\Software\Cyco\AutoManager Meridian\CurrentVersion\Server\UserDatabase.

Syntax

FullName As String

ClosedHasPrivilege Property

True if the user has the specified privilege for the default object (ParentFolder or WorkArea) or an optional specified Document (expressed as Document.ParentFolder), Vault, WorkArea, or Folder object. The Privilege argument is specified as a long integer that represents one or more of the AS_PRIVILEGES constants. Read-only.

Syntax

HasPrivilege(Privilege, [Object]) As Boolean

ClosedHasRole Property

True if the user is assigned the specified role for the default object (ParentFolder or WorkArea) or an optional specified Document (expressed as Document.ParentFolder), Folder, WorkArea, or Vault object. Read-only.

Syntax

HasRole(Role, [Object]) As Boolean

Remarks

To use this property in a visibility expression to conditionally show custom properties or pages in a new document wizard, the Object parameter must be specified as the expected destination folder of the new document. By default, new documents do not yet have a ParentFolder value in the DocGenericEvent_BeforeNewDocument event when the wizard is active.

If the default or a specified object does not have any roles assigned and also does not inherit any role assignments from a parent, this property will always return True. This behavior is by design; role-based security is disabled if there are no roles assigned in the vault. To enable role-based security and return a different result, assign at least one role to the root of the vault.

ClosedInitials Property

The initials of the user as stored in the user's Meridian account information. Read-only.

Syntax

Initials As String

ClosedManager Property

The manager of the user as stored in the user's Meridian account information. Read-only.

Syntax

Manager As String

ClosedName Property

Returns the name of the current object. Depending on the object type, this property returns the display name of the object or it returns the internal name and may be read-only.

Syntax

Name As String

Remarks

If the current object is a Package, it must be in the Open status to set the value.

If the current object is a User, this property is the short name of the user as stored in the user's Meridian account information and is read-only. This property can be used to specify the recipient's email address and either an empty string or no value set in the Address property. If an email address is specified in Name, it must be surrounded with carets (<>). When used with Microsoft Outlook, the Name property may contain the user's full name or last name and Outlook will attempt to resolve the name to the email address in the default address book.

Meridian user names can be shown in different formats determined by the UserNameFormatserver registry setting.

ClosedOrganizationalUnit Property

The organizational unit of the user as stored in the user's Meridian account information. Read-only.

Syntax

OrganizationalUnit As String

ClosedProfile Property

The user's personal PowerWeb settings. Each setting represents the user interface options described in Personal preferences.

Syntax

Profile.UseAutoVueClientServer As Boolean
Profile.ActiveXCompatibilityMode As Boolean
Profile.CurrentTimeZone As String
Profile.Language As String (case sensitive Windows Language Code Identifier)
Profile.Locale As String (case sensitive Windows Language Code Identifier)
Profile.SiteCacheMode As Boolean
Profile.ViewRenditions As Boolean
Profile.CreateThumbnailsOnImport As Boolean
Profile.UpdateThumbNailsAfterQuickChange As Boolean
Profile.RememberVaultLocation As Boolean
Profile.ShowRibbon As Boolean Profile.ColorScheme

Remarks

Set values in the VaultEvent_NewProfile event.

ClosedTitle Property

The title of the user as stored in the user's Meridian account information. Read-only.

Syntax

Title As String

ClosedUser Object Methods

The User object provides no methods. To modify user properties, edit the user's Meridian account as described in Create and Edit User Accounts.

2022 R2