QueryAccess (NotesDatabase - LotusScript®)

Returns the current access level of a person, group, or server to a database.

Defined in

NotesDatabase

Syntax

level% = notesDatabase .QueryAccess( name$ )

Parameters

name$

String. The name of the person, group, or server.

Return value

level%

Integer constant. Indicates the current access level. One of the following:

  • ACLLEVEL_NOACCESS (0)
  • ACLLEVEL_DEPOSITOR (1)
  • ACLLEVEL_READER (2)
  • ACLLEVEL_AUTHOR (3)
  • ACLLEVEL_EDITOR (4)
  • ACLLEVEL_DESIGNER (5)
  • ACLLEVEL_MANAGER(6)

Usage

If the name you specify is listed explicitly in the ACL, QueryAccess returns the access level for that ACL entry and does not check groups.

If the name you specify is not listed explicitly in the ACL, QueryAccess checks to see if the name is a member of a group in the primary address book where the program is running: on a workstation the Personal Address Book; on a server the Domino® Directory. QueryAccess returns the highest access level among those groups.

If the name you specify is not listed in the ACL either individually or as part of a group, QueryAccess returns the default access level for the ACL.

Example