Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






GrantAccess method

Modifies a database access control list to provide the specified level of access to a person, group, or server.

Defined in

NotesDatabase

Syntax

Call notesDatabase.GrantAccess( name$, level% )

Parameters

name$

String. The name of the person, group, or server for which you want to provide or change the access level.

level%

Integer constant. The level of access you're granting. This parameter is one of the following constants:

Level%
Meaning

ACLLEVEL_NOACCESS (0)

No access

ACLLEVEL_DEPOSITOR (1)

Depositor access

ACLLEVEL_READER (2)

Reader access

ACLLEVEL_AUTHOR (3)

Author access

ACLLEVEL_EDITOR (4)

Editor access

ACLLEVEL_DESIGNER (5)

Designer access

ACLLEVEL_MANAGER (6)

Manager access

Usage

This method changes any existing NotesACL or NotesACLEntry object associated with the database.

If the name$ already exists in the ACL, this method updates it with the access level%. Otherwise, the name is added to the ACL with level%.

You can also use this method to deny access to a person, group, or server by assigning ACLLEVEL_NOACCESS.

This method sets ACL roles to their default values.

Language cross-reference

grantAccess method in Java Database class

See examples

Examples: GrantAccess method
Related topics
Examining and adjusting an access control list
NotesACL class
NotesACLEntry class




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009