NotesACLEntry (LotusScript®)

Represents a single entry in an access control list. An entry may be for a person, a group, or a server.

Containment

Contained by: NotesACL

Contains: NotesName

Properties

CanCreateDocuments

CanCreateLSOrJavaAgent

CanCreatePersonalAgent

CanCreatePersonalFolder

CanCreateSharedFolder

CanDeleteDocuments

CanReplicateOrCopyDocuments

IsAdminReaderAuthor

IsAdminServer

IsGroup

IsPerson

IsPublicReader

IsPublicWriter

IsServer

Level

Name

NameObject

Parent

Roles

UserType

Methods

DisableRole

EnableRole

IsRoleEnabled

New

Remove

Creation

To create a new NotesACLEntry object, use one of the following:

  • New
Note: The New method is not supported in COM.
  • CreateACLEntry method in NotesACL

New creates an entry in an ACL with the name and level that you specify.

You must call Save on the ACL if you want the modified ACL to be saved to disk.

Syntax

Dim variableName As New NotesACLEntry( notesACL , name$ , level% )

or

Set notesACLEntry = New NotesACLEntry( notesACL , name$ , level% )

Parameters

notesACL

The ACL that contains the entry you're creating.

name$

String. The name of the person, group, or server for whom you want to create an entry in the ACL.

level%

Constant. The level you want to assign to this person, group, or server in the ACL. May be any of the following:

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

Access

NotesACL provides three ways to access an existing NotesACLEntry.

  • To access an entry in an ACL when you know its name, use GetEntry.
  • To access the first entry in the ACL, use GetFirstEntry.
  • To access entries after the first one, use GetNextEntry.

Example