LOTUSSCRIPT/COM/OLE CLASSES


QueryAccess method
Example

Returns the current access level of a person, group, or server to a database.

Defined in

NotesDatabase

Syntax

level% = notesDatabase.QueryAccess( name$ )

Parameters

name$


Return value

level%

Usage

If the name you specify is listed explicitly in the ACL, QueryAccess returns the access level for that ACL entry and does not check groups.

If the name you specify is not listed explicitly in the ACL, QueryAccess 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. QueryAccess returns the highest access level among those groups.

If the name you specify is not listed in the ACL either individually or as part of a group, QueryAccess returns the default access level for the ACL.

Language cross-reference

queryAccess method in Java Database class

@UserAccess function in formula language

@V4UserAccess function in formula language

Example
See Also