QueryAccessPrivileges (NotesDatabase - LotusScript®)

Returns the privileges of a person, group, or server in a database.

Note: This method is new with Release 6.5.

Defined in

NotesDatabase

Syntax

privileges& = notesDatabase .QueryAccessPrivileges( name$ )

Parameters

name$

String. The name of the person, group, or server. For a hierarchical name, the full name must be specified but can be in abbreviated format.

Return value

privileges&

Long constant. The current access privileges, a combination of the following:

  • DBACL_CREATE_DOCUMENTS (1)
  • DBACL_DELETE_DOCUMENTS (2)
  • DBACL_CREATE_PRIV_AGENTS (4)
  • DBACL_CREATE_PRIV_FOLDERS_VIEWS (8)
  • DBACL_CREATE_SHARED_FOLDERS_VIEWS (16)
  • DBACL_CREATE_SCRIPT_AGENTS (32)
  • DBACL_READ_PUBLIC_DOCUMENTS (64)
  • DBACL_WRITE_PUBLIC_DOCUMENTS (128)
  • DBACL_REPLICATE_COPY_DOCUMENTS (256)

Individual privileges can be discerned through bitwise operations.

Usage

If the name you specify is listed explicitly in the ACL, then QueryAccessPrivileges returns the privileges for that ACL entry and does not check groups.

If the name you specify is not listed explicitly in the ACL, QueryAccessPrivileges 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.

Example