GrantAccess (NotesDatabase - LotusScript®)

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