User Environment

Methods

(inner) domain()

Returns the name of the current user's Domino® mail domain listed in the current location document of the Personal Address Book.

To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) mailDbName()

Returns the name of the Domino® server and the name of the current user's mail database.

Throws:

no plans to implement

Type
Error

(inner) name() → {TextOrTextList}

Allows you to manipulate hierarchical names. You can abbreviate the canonical format of a name, expand an abbreviated name to its canonical format, identify particular components within the name, and reverse the order of the components so that you can categorize a view by hierarchical names.

Enables you to convert a name between the Domino® and LDAP formats.

See
Returns:
Type: 
TextOrTextList

(inner) optimizeMailAddress()

Returns a mail address with all unnecessary domains removed.

Throws:

no plans to implement

Type
Error

(inner) password()

Encodes a string.

To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) platform()

Returns the name of the currently running platform version of Notes, Domino, or Nomad.

To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) statusBar()

Writes a message or messages to the status bar.

To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userAccess()

Given a server and file name, indicates the current user's level of access to the database.

To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userName(indexopt)

Returns the current user name.

If the user name is hierarchical, @UserName returns it in canonical format (including the CN, OU, O, and C identifiers). To return the name in abbreviated format (omitting those identifiers), use @V3UserName.

Parameters:
NameTypeAttributesDescription
indexstring<optional>

Number. Optional. Indicating the index of user names. 0 is for primary name and 1 is for the alternate name. If this parameter is omitted, @UserName returns the primary name.

Returns:

Promise that resolves to the current user name.

(inner) userNameLanguage()

Returns language tags associated with the user ID.

Throws:

no plans to implement

Type
Error

(inner) userNamesList()

For a database on a server or a local database with "Enforce a consistent Access Control List across all replicas" in effect, @UserNamesList returns a text list containing the following information for the current user:

  • Common name
  • All hierarchical names (fully distinguished) that include the user name; for example, CN=My Name/OU=My Org Unit/O=My Org, plus */OU=My Org Unit/O=My Org, */O=My Org, and *
  • Any roles associated with the user in the ACL
  • All groups to which the user belongs (only if the database is on a server)
To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userPrivileges()

Returns a text list of the current user's privileges. This function returns only the position of the privilege in the privilege list, not the name of the privilege.

To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) userRoles()

For a database on a server or a local replicated database, returns a list of roles that the current user has. Roles are defined in a database's access control list.

To Do
  • this needs to be implemented
Throws:

method not implemented

Type
Error

(inner) v3UserName()

Returns the current user name or server name. Using @V3UserName on a local database or in a private view in a server-based database returns the user's name.

If the user name is hierarchical, @V3UserName returns the name in abbreviated format (omitting the CN, OU, O, and C identifiers). To return the name in canonical format, use @UserName.

Returns:

Promise that resolves to the current user name or server name.

(inner) v4UserAccess()

Given a server and file name, indicates the current user's level of access to the database.

Throws:

no plans to implement

Type
Error

(inner) version()

Returns the release number of the Notes/Domino software you're running.

Throws:

no plans to implement

Type
Error