RevokeAccess (NotesDatabase - LotusScript®)

Removes a person, group, or server from a database access control list. This resets the access level for that person, group, or server to the Default setting for the database.

Defined in

NotesDatabase

Syntax

Call notesDatabase .RevokeAccess( name$ )

Parameters

name$

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

Usage

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

Revoking access is different than assigning No Access (which you can do with the GrantAccess method). When you revoke access, you remove the name from the ACL, but the person, group, or server can still access the database at the level specified for the Default. When you use the GrantAccess method to assign No Access, the name remains in the ACL, and the person, group, or server cannot access the database, regardless of the Default setting.

Errors

The name$ must be explicitly listed in the database ACL. If it isn't, RevokeAccess raises the error: "The name is not in the list." This error is raised even if the name$ is a member of a group that is listed in the ACL.

Example